update nginx to tolerate master node

This commit is contained in:
2021-03-19 10:50:02 +11:00
parent b5f03a2faf
commit 65029d488d
3 changed files with 22 additions and 11 deletions
+4
View File
@@ -3,6 +3,10 @@
# namespaces
kubectl create namespace longhorn
# taints
kubectl taint nodes server-1 node=special:NoSchedule
## install nginx ingress controller grafana dashboards
# https://github.com/kubernetes/ingress-nginx/tree/master/deploy/grafana/dashboards
+5
View File
@@ -10,6 +10,11 @@ stats:
nodeSelector:
gateway: "true"
tolerations:
- key: node
operator: Equal
value: special
effect: NoSchedule
replicaCount: 1
service:
+13 -11
View File
@@ -1,21 +1,23 @@
image:
repository: postgres
tag: 11
postgresqlDataDir: /var/lib/postgresql/data
# image:
# repository: postgres
# tag: 11
# postgresqlDataDir: /bitnami/postgresql
postgresqlPassword: "@wahyd4"
postgresqlDatabase: home
persistence:
mountPath: /var/lib/postgresql/data
storageClass: nfs
existingClaim: postgres-nfs
mountPath: /bitnami/postgresql
storageClass: longhorn-static
existingClaim: postgres-db
# storageClass: nfs
# existingClaim: postgres-nfs
volumePermissions:
enabled: true
securityContext:
fsGroup: 1000
runAsUser: 1000
# securityContext:
# fsGroup: 1000
# runAsUser: 1000
service:
type: NodePort
nodePort: 32222
nodePort: 31111
metrics:
enabled: true
serviceMonitor: