this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(apps): move apps to separate directories

+146 -171
-93
apps/blog.yaml
··· 1 - --- 2 - apiVersion: v1 3 - kind: Namespace 4 - metadata: 5 - name: blog 6 - --- 7 - apiVersion: apps/v1 8 - kind: Deployment 9 - metadata: 10 - labels: 11 - app: blog 12 - name: blog 13 - namespace: blog 14 - spec: 15 - selector: 16 - matchLabels: 17 - app: blog 18 - template: 19 - metadata: 20 - labels: 21 - app: blog 22 - spec: 23 - containers: 24 - - name: nginx 25 - image: nginx:latest 26 - volumeMounts: 27 - - mountPath: /usr/share/nginx/html 28 - name: static 29 - - name: build 30 - image: alpine:latest 31 - workingDir: /usr/local/src 32 - command: 33 - - /bin/sh 34 - - -c 35 - args: 36 - - | 37 - apk add git hugo 38 - git clone --recursive https://github.com/khuedoan/blog . 39 - while true; do 40 - hugo --minify --destination /usr/share/nginx/html 41 - sleep 120 42 - git pull 43 - done 44 - volumeMounts: 45 - - mountPath: /usr/local/src 46 - name: source 47 - - mountPath: /usr/share/nginx/html 48 - name: static 49 - volumes: 50 - - name: source 51 - emptyDir: {} 52 - - name: static 53 - emptyDir: {} 54 - --- 55 - apiVersion: v1 56 - kind: Service 57 - metadata: 58 - labels: 59 - app: blog 60 - name: blog 61 - namespace: blog 62 - spec: 63 - type: ClusterIP 64 - selector: 65 - app: blog 66 - ports: 67 - - name: http 68 - protocol: TCP 69 - port: 80 70 - targetPort: 80 71 - --- 72 - apiVersion: networking.k8s.io/v1 73 - kind: Ingress 74 - metadata: 75 - name: blog 76 - namespace: blog 77 - annotations: 78 - cert-manager.io/cluster-issuer: letsencrypt-prod 79 - spec: 80 - rules: 81 - - host: &host www.khuedoan.com 82 - http: 83 - paths: 84 - - pathType: ImplementationSpecific 85 - backend: 86 - service: 87 - name: blog 88 - port: 89 - name: http 90 - tls: 91 - - secretName: blog-tls-certificate 92 - hosts: 93 - - *host
+47
apps/blog/deployment.yaml
··· 1 + apiVersion: apps/v1 2 + kind: Deployment 3 + metadata: 4 + labels: 5 + app: blog 6 + name: blog 7 + namespace: blog 8 + spec: 9 + selector: 10 + matchLabels: 11 + app: blog 12 + template: 13 + metadata: 14 + labels: 15 + app: blog 16 + spec: 17 + containers: 18 + - name: nginx 19 + image: nginx:latest 20 + volumeMounts: 21 + - mountPath: /usr/share/nginx/html 22 + name: static 23 + - name: build 24 + image: alpine:latest 25 + workingDir: /usr/local/src 26 + command: 27 + - /bin/sh 28 + - -c 29 + args: 30 + - | 31 + apk add git hugo 32 + git clone --recursive https://github.com/khuedoan/blog . 33 + while true; do 34 + hugo --minify --destination /usr/share/nginx/html 35 + sleep 120 36 + git pull 37 + done 38 + volumeMounts: 39 + - mountPath: /usr/local/src 40 + name: source 41 + - mountPath: /usr/share/nginx/html 42 + name: static 43 + volumes: 44 + - name: source 45 + emptyDir: {} 46 + - name: static 47 + emptyDir: {}
+22
apps/blog/ingress.yaml
··· 1 + apiVersion: networking.k8s.io/v1 2 + kind: Ingress 3 + metadata: 4 + name: blog 5 + namespace: blog 6 + annotations: 7 + cert-manager.io/cluster-issuer: letsencrypt-prod 8 + spec: 9 + rules: 10 + - host: &host www.khuedoan.com 11 + http: 12 + paths: 13 + - pathType: ImplementationSpecific 14 + backend: 15 + service: 16 + name: blog 17 + port: 18 + name: http 19 + tls: 20 + - secretName: blog-tls-certificate 21 + hosts: 22 + - *host
+16
apps/blog/service.yaml
··· 1 + apiVersion: v1 2 + kind: Service 3 + metadata: 4 + labels: 5 + app: blog 6 + name: blog 7 + namespace: blog 8 + spec: 9 + type: ClusterIP 10 + selector: 11 + app: blog 12 + ports: 13 + - name: http 14 + protocol: TCP 15 + port: 80 16 + targetPort: 80
-32
apps/cert-manager.yaml
··· 1 - --- 2 - apiVersion: v1 3 - kind: Namespace 4 - metadata: 5 - name: cert-manager 6 - --- 7 - apiVersion: helm.cattle.io/v1 8 - kind: HelmChart 9 - metadata: 10 - name: cert-manager 11 - namespace: cert-manager 12 - spec: 13 - repo: https://charts.jetstack.io 14 - chart: cert-manager 15 - version: v1.7.0 16 - targetNamespace: cert-manager 17 - valuesContent: |- 18 - installCRDs: true 19 - --- 20 - apiVersion: cert-manager.io/v1 21 - kind: ClusterIssuer 22 - metadata: 23 - name: letsencrypt-prod 24 - spec: 25 - acme: 26 - server: https://acme-v02.api.letsencrypt.org/directory 27 - privateKeySecretRef: 28 - name: letsencrypt-account-key 29 - solvers: 30 - - http01: 31 - ingress: 32 - class: traefik
+7
apps/cert-manager/Chart.yaml
··· 1 + apiVersion: v2 2 + name: cert-manager 3 + version: 0.0.0 4 + dependencies: 5 + - name: cert-manager 6 + version: v1.8.1 7 + repository: https://charts.jetstack.io
+13
apps/cert-manager/templates/clusterissuer.yaml
··· 1 + apiVersion: cert-manager.io/v1 2 + kind: ClusterIssuer 3 + metadata: 4 + name: letsencrypt-prod 5 + spec: 6 + acme: 7 + server: https://acme-v02.api.letsencrypt.org/directory 8 + privateKeySecretRef: 9 + name: letsencrypt-account-key 10 + solvers: 11 + - http01: 12 + ingress: 13 + class: traefik
+2
apps/cert-manager/values.yaml
··· 1 + cert-manager: 2 + installCRDs: true
-46
apps/homelab-docs.yaml apps/homelab-docs/deployment.yaml
··· 1 - --- 2 - apiVersion: v1 3 - kind: Namespace 4 - metadata: 5 - name: homelab-docs 6 - --- 7 1 apiVersion: apps/v1 8 2 kind: Deployment 9 3 metadata: ··· 62 56 emptyDir: {} 63 57 - name: static 64 58 emptyDir: {} 65 - --- 66 - apiVersion: v1 67 - kind: Service 68 - metadata: 69 - labels: 70 - app: homelab-docs 71 - name: homelab-docs 72 - namespace: homelab-docs 73 - spec: 74 - type: ClusterIP 75 - selector: 76 - app: homelab-docs 77 - ports: 78 - - name: http 79 - protocol: TCP 80 - port: 80 81 - targetPort: 80 82 - --- 83 - apiVersion: networking.k8s.io/v1 84 - kind: Ingress 85 - metadata: 86 - name: homelab-docs 87 - namespace: homelab-docs 88 - annotations: 89 - cert-manager.io/cluster-issuer: letsencrypt-prod 90 - spec: 91 - rules: 92 - - host: &host homelab.khuedoan.com 93 - http: 94 - paths: 95 - - pathType: ImplementationSpecific 96 - backend: 97 - service: 98 - name: homelab-docs 99 - port: 100 - name: http 101 - tls: 102 - - secretName: homelab-docs-tls-certificate 103 - hosts: 104 - - *host
+22
apps/homelab-docs/ingress.yaml
··· 1 + apiVersion: networking.k8s.io/v1 2 + kind: Ingress 3 + metadata: 4 + name: homelab-docs 5 + namespace: homelab-docs 6 + annotations: 7 + cert-manager.io/cluster-issuer: letsencrypt-prod 8 + spec: 9 + rules: 10 + - host: &host homelab.khuedoan.com 11 + http: 12 + paths: 13 + - pathType: ImplementationSpecific 14 + backend: 15 + service: 16 + name: homelab-docs 17 + port: 18 + name: http 19 + tls: 20 + - secretName: homelab-docs-tls-certificate 21 + hosts: 22 + - *host
+16
apps/homelab-docs/service.yaml
··· 1 + apiVersion: v1 2 + kind: Service 3 + metadata: 4 + labels: 5 + app: homelab-docs 6 + name: homelab-docs 7 + namespace: homelab-docs 8 + spec: 9 + type: ClusterIP 10 + selector: 11 + app: homelab-docs 12 + ports: 13 + - name: http 14 + protocol: TCP 15 + port: 80 16 + targetPort: 80
+1
apps/mailserver.yaml
··· 1 1 --- 2 + # TODO switch to Helm chart 2 3 apiVersion: v1 3 4 kind: Namespace 4 5 metadata: