add argocd helm
This commit is contained in:
parent
dffafe764e
commit
d0962dbf08
|
|
@ -1,24 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -8,7 +8,7 @@ resource "linode_lke_cluster" "stg-video-cluster" {
|
||||||
|
|
||||||
pool {
|
pool {
|
||||||
type = "g6-standard-2"
|
type = "g6-standard-2"
|
||||||
count = 3
|
count = 6
|
||||||
autoscaler {
|
autoscaler {
|
||||||
min = 3
|
min = 3
|
||||||
max = 10
|
max = 10
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue