diff --git a/k8s/applications-old/Chart.yaml b/k8s/applications-old/Chart.yaml new file mode 100644 index 0000000..a644932 --- /dev/null +++ b/k8s/applications-old/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +name: applications +version: '1.0' diff --git a/k8s/applications-old/values-staging.yaml b/k8s/applications-old/values-staging.yaml new file mode 100644 index 0000000..1ae2531 --- /dev/null +++ b/k8s/applications-old/values-staging.yaml @@ -0,0 +1 @@ +environment: staging \ No newline at end of file diff --git a/k8s/argocd/Chart.lock b/k8s/argocd/Chart.lock new file mode 100644 index 0000000..f67cffe --- /dev/null +++ b/k8s/argocd/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: argo-cd + repository: https://argoproj.github.io/argo-helm + version: 3.26.8 +digest: sha256:7bc244d0e512a0c8c0d564c8d903b9137c2530ca418532ea171faa6f23bc7694 +generated: "2021-11-16T17:46:33.014299+01:00" diff --git a/k8s/argocd/charts/argo-cd-3.26.8.tgz b/k8s/argocd/charts/argo-cd-3.26.8.tgz new file mode 100644 index 0000000..20bd39b Binary files /dev/null and b/k8s/argocd/charts/argo-cd-3.26.8.tgz differ diff --git a/k8s/argocd/templates/alertmanager-slack.yaml b/k8s/argocd/templates/alertmanager-slack.yaml new file mode 100644 index 0000000..6d41e40 --- /dev/null +++ b/k8s/argocd/templates/alertmanager-slack.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: alertmanager-slack +spec: + destination: + name: '' + namespace: alertmanager-slack + server: 'https://kubernetes.default.svc' + source: + path: k8s/alertmanager-slack + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/argocd-ingress.yaml b/k8s/argocd/templates/argocd-ingress.yaml new file mode 100644 index 0000000..21f2b81 --- /dev/null +++ b/k8s/argocd/templates/argocd-ingress.yaml @@ -0,0 +1,30 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-server-ingress + namespace: argocd + annotations: + cert-manager.io/cluster-issuer: letsencrypt-nginx-production + kubernetes.io/ingress.class: nginx + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-passthrough: "true" + # If you encounter a redirect loop or are getting a 307 response code + # then you need to force the nginx ingress to connect to the backend using HTTPS. + # + nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" +spec: + rules: + - host: {{ .Values.hostname}} + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + name: https + tls: + - hosts: + - {{ .Values.hostname}} + secretName: argocd-secret # do not change, this is provided by Argo CD \ No newline at end of file diff --git a/k8s/argocd/templates/argocd.yaml b/k8s/argocd/templates/argocd.yaml new file mode 100644 index 0000000..2a57770 --- /dev/null +++ b/k8s/argocd/templates/argocd.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd +spec: + destination: + name: '' + namespace: argocd + server: 'https://kubernetes.default.svc' + source: + helm: + valueFiles: + - values-{{ .Values.environment }}.yaml + path: k8s/argocd + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/cert-manager.yaml b/k8s/argocd/templates/cert-manager.yaml new file mode 100644 index 0000000..07f6333 --- /dev/null +++ b/k8s/argocd/templates/cert-manager.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cert-manager +spec: + destination: + name: '' + namespace: cert-manager + server: 'https://kubernetes.default.svc' + source: + path: k8s/cert-manager + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/coturn-dns.yaml b/k8s/argocd/templates/coturn-dns.yaml new file mode 100644 index 0000000..debac7c --- /dev/null +++ b/k8s/argocd/templates/coturn-dns.yaml @@ -0,0 +1,29 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: coturn-dns +spec: + destination: + name: '' + namespace: coturn-dns + server: 'https://kubernetes.default.svc' + source: + helm: + valueFiles: + - values-{{ .Values.environment }}.yaml + path: k8s/coturn-dns + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + # automated: + # prune: true + # allowEmpty: false + # retry: + # limit: 5 + # backoff: + # duration: 5s + # factor: 2 + # maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/coturn.yaml b/k8s/argocd/templates/coturn.yaml new file mode 100644 index 0000000..a8236c6 --- /dev/null +++ b/k8s/argocd/templates/coturn.yaml @@ -0,0 +1,26 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: coturn +spec: + destination: + name: '' + namespace: coturn + server: 'https://kubernetes.default.svc' + source: + path: k8s/coturn + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + # automated: + # prune: true + # allowEmpty: false + # retry: + # limit: 5 + # backoff: + # duration: 5s + # factor: 2 + # maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/external-dns.yaml b/k8s/argocd/templates/external-dns.yaml new file mode 100644 index 0000000..ba2f451 --- /dev/null +++ b/k8s/argocd/templates/external-dns.yaml @@ -0,0 +1,26 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: external-dns +spec: + destination: + name: '' + namespace: external-dns + server: 'https://kubernetes.default.svc' + source: + path: k8s/external-dns + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/ingress-nginx.yaml b/k8s/argocd/templates/ingress-nginx.yaml new file mode 100644 index 0000000..8221c40 --- /dev/null +++ b/k8s/argocd/templates/ingress-nginx.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ingress-nginx +spec: + destination: + name: '' + namespace: ingress-nginx + server: 'https://kubernetes.default.svc' + source: + path: '' + repoURL: 'https://kubernetes.github.io/ingress-nginx' + targetRevision: 4.0.6 + chart: ingress-nginx + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/metrics-server.yaml b/k8s/argocd/templates/metrics-server.yaml new file mode 100644 index 0000000..5de4849 --- /dev/null +++ b/k8s/argocd/templates/metrics-server.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: metrics-server +spec: + destination: + name: '' + namespace: metrics-server + server: 'https://kubernetes.default.svc' + source: + path: '' + repoURL: 'https://charts.bitnami.com/bitnami' + targetRevision: 5.10.7 + chart: metrics-server + helm: + values: |- + apiService: + create: true + extraArgs: + kubelet-preferred-address-types: InternalIP + kubelet-insecure-tls: true + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/monitoring.yaml b/k8s/argocd/templates/monitoring.yaml new file mode 100644 index 0000000..7f61a65 --- /dev/null +++ b/k8s/argocd/templates/monitoring.yaml @@ -0,0 +1,29 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: monitoring +spec: + destination: + name: '' + namespace: monitoring + server: 'https://kubernetes.default.svc' + source: + helm: + valueFiles: + - values-{{ .Values.environment }}.yaml + path: k8s/monitoring + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + # automated: + # prune: true + # allowEmpty: false + # retry: + # limit: 5 + # backoff: + # duration: 5s + # factor: 2 + # maxDuration: 3m \ No newline at end of file diff --git a/k8s/argocd/templates/webrtc-be.yaml b/k8s/argocd/templates/webrtc-be.yaml new file mode 100644 index 0000000..93c6b66 --- /dev/null +++ b/k8s/argocd/templates/webrtc-be.yaml @@ -0,0 +1,29 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: webrtc-be +spec: + destination: + name: '' + namespace: webrtc-be + server: 'https://kubernetes.default.svc' + source: + helm: + valueFiles: + - values-{{ .Values.environment }}.yaml + path: k8s/webrtc-be + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file