Update yamls

This commit is contained in:
2025-04-11 14:08:33 +10:00
parent fcdd3b2c22
commit 4200c3d72a
7 changed files with 96 additions and 54 deletions
+10
View File
@@ -296,3 +296,13 @@ sudo fail2ban-client status sshd
# When port 53 is used, then check systemd-resolved # When port 53 is used, then check systemd-resolved
sudo systemctl status systemd-resolved sudo systemctl status systemd-resolved
sudo systemctl disable systemd-resolved
vim /etc/resolv.conf # and remove local nameserver
# redis
helm upgrade --install redis -n db -f db/redis-values.yaml bitnami/redis
View File
+31 -15
View File
@@ -1,11 +1,15 @@
# image:
# repository: postgres
# tag: 11
# postgresqlDataDir: /bitnami/postgresql
postgresqlDatabase: home postgresqlDatabase: home
global: global:
storageClass: nfs-client # storageClass: local-storage
imageRegistry: mirror.gcr.io
postgresql: postgresql:
auth: auth:
database: junv-db database: junv-db
# TODO: need to UPDATE DATA before update this image tag # TODO: need to UPDATE DATA before update this image tag
# error: DETAIL: The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 14.1. # error: DETAIL: The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 14.1.
image: image:
@@ -60,6 +64,15 @@ customRreadinessProbe:
failureThreshold: 6 failureThreshold: 6
primary: primary:
podSecurityContext:
enabled: true
fsGroup: 1000
containerSecurityContext:
enabled: true
runAsUser: 1000
extendedConfiguration: |
max_connections = 300
shared_buffers = 128MB
labels: labels:
role: primary role: primary
service: service:
@@ -73,19 +86,22 @@ primary:
cpu: 250m cpu: 250m
persistence: persistence:
mountPath: /bitnami/postgresql mountPath: /bitnami/postgresql
storageClass: nfs-client existingClaim: postgres-local-pvc
size: 20Gi nodeSelector:
# nodeSelector: kubernetes.io/hostname: server-3
# kubernetes.io/hostname: server-1 tolerations:
# tolerations: - key: "node"
# - key: "node" operator: "Equal"
# operator: "Equal" value: "special"
# value: "special" effect: "NoSchedule"
# effect: "NoSchedule" - key: node-role.kubernetes.io/master
# - key: node-role.kubernetes.io/master operator: Equal
# operator: Equal value: ""
# value: "" effect: NoSchedule
# effect: NoSchedule - key: node-role.kubernetes.io/control-plane
operator: Equal
value: ""
effect: NoSchedule
readReplicas: readReplicas:
replicaCount: 1 replicaCount: 1
-35
View File
@@ -1,35 +0,0 @@
auth:
sentinel: true
existingSecret: redis-credentials
existingSecretPasswordKey: redis-password
persistence:
size: 10Gi
storageClass: nfs-client
# existingClaim: nfs-redis
volumePermissions:
enabled: true
# securityContext:
# fsGroup: 1000
# runAsUser: 1000
metrics:
enabled: true
serviceMonitor:
enabled: true
additionalLabels:
release: prometheus
master:
service:
type: ClusterIP
persistence:
enabled: true
size: 10Gi
storageClass: nfs-client
# existingClaim: nfs-redis
replica:
persistence:
enabled: true
size: 5Gi
storageClass: nfs-client
+3 -3
View File
@@ -36,7 +36,7 @@ server:
- argo.junv.cc - argo.junv.cc
secretName: argocd-tls secretName: argocd-tls
metrics: metrics:
enabled: true enabled: false
serviceMonitor: serviceMonitor:
enabled: true enabled: true
env: env:
@@ -46,13 +46,13 @@ server:
repoServer: repoServer:
replicas: 1 replicas: 1
metrics: metrics:
enabled: true enabled: false
serviceMonitor: serviceMonitor:
enabled: true enabled: true
applicationSet: applicationSet:
metrics: metrics:
enabled: true enabled: false
serviceMonitor: serviceMonitor:
enabled: true enabled: true
+51
View File
@@ -0,0 +1,51 @@
global:
imageRegistry: mirror.gcr.io
image:
registry: mirror.gcr.io
architecture: standalone
auth:
enabled: false
# sentinel: true
# existingSecret: redis-credentials
# existingSecretPasswordKey: redis-password
persistence:
size: 20Gi
# storageClass: nfs-client
existingClaim: redis-local-pvc
volumePermissions:
enabled: true
# securityContext:
# fsGroup: 1000
# runAsUser: 1000
metrics:
enabled: true
serviceMonitor:
enabled: true
additionalLabels:
release: prometheus
master:
service:
type: ClusterIP
persistence:
enabled: true
size: 20Gi
# storageClass: nfs-client
existingClaim: redis-local-pvc
tolerations:
- key: "node"
operator: "Equal"
value: "special"
effect: "NoSchedule"
- key: node-role.kubernetes.io/master
operator: Equal
value: ""
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Equal
value: ""
effect: NoSchedule
replica:
persistence:
enabled: false
size: 5Gi
storageClass: nfs-client
+1 -1
View File
@@ -38,7 +38,7 @@ spec:
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
runAsGroup: 0 runAsGroup: 0
fsGroup: 0 # fsGroup: 0
command: ["/bin/sh", "-c"] command: ["/bin/sh", "-c"]
args: args:
- | - |