chore: update storage classes and node selectors
- Change storageClass values from 'local-vkus2' to 'local-zgus1' - Update nodeSelector hostname from 'vkvm-us2' to 'zgocloud-us1' - Modify persistent volume claim names to reflect new storage class These changes aim to facilitate a smooth transition to a new hosting environment, ensuring that the resources are correctly allocated and managed.
This commit is contained in:
parent
f8e0654b8f
commit
c4f98c10a1
@ -220,14 +220,14 @@ persistence:
|
|||||||
# Specify the "storageClass" used to provision the volume. Or the default
|
# Specify the "storageClass" used to provision the volume. Or the default
|
||||||
# StorageClass will be used (the default).
|
# StorageClass will be used (the default).
|
||||||
# Set it to "-" to disable dynamic provisioning
|
# Set it to "-" to disable dynamic provisioning
|
||||||
storageClass: "local-vkus2"
|
storageClass: "local-zgus1"
|
||||||
subPath: ""
|
subPath: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
annotations: {}
|
annotations: {}
|
||||||
chartmuseum:
|
chartmuseum:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
storageClass: "local-vkus2"
|
storageClass: "local-zgus1"
|
||||||
subPath: ""
|
subPath: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
@ -235,7 +235,7 @@ persistence:
|
|||||||
jobservice:
|
jobservice:
|
||||||
jobLog:
|
jobLog:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
storageClass: "local-vkus2"
|
storageClass: "local-zgus1"
|
||||||
subPath: ""
|
subPath: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
@ -244,7 +244,7 @@ persistence:
|
|||||||
# be ignored
|
# be ignored
|
||||||
database:
|
database:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
storageClass: "local-vkus2"
|
storageClass: "local-zgus1"
|
||||||
subPath: ""
|
subPath: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
@ -253,14 +253,14 @@ persistence:
|
|||||||
# be ignored
|
# be ignored
|
||||||
redis:
|
redis:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
storageClass: "local-vkus2"
|
storageClass: "local-zgus1"
|
||||||
subPath: ""
|
subPath: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
annotations: {}
|
annotations: {}
|
||||||
trivy:
|
trivy:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
storageClass: "local-vkus2"
|
storageClass: "local-zgus1"
|
||||||
subPath: ""
|
subPath: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
@ -429,7 +429,7 @@ nginx:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
# kubernetes.io/hostname: vkvm-us2
|
# kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
@ -461,7 +461,7 @@ portal:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -488,7 +488,7 @@ core:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -547,7 +547,7 @@ jobservice:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -584,7 +584,7 @@ registry:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
revisionHistoryLimit: 10
|
revisionHistoryLimit: 10
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -644,7 +644,7 @@ chartmuseum:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -720,7 +720,7 @@ trivy:
|
|||||||
cpu: 1
|
cpu: 1
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -744,7 +744,7 @@ notary:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -767,7 +767,7 @@ notary:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## Additional deployment annotations
|
## Additional deployment annotations
|
||||||
@ -811,7 +811,7 @@ database:
|
|||||||
readinessProbe:
|
readinessProbe:
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## The priority class to run the pod as
|
## The priority class to run the pod as
|
||||||
@ -872,7 +872,7 @@ redis:
|
|||||||
# memory: 256Mi
|
# memory: 256Mi
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
## The priority class to run the pod as
|
## The priority class to run the pod as
|
||||||
@ -926,7 +926,7 @@ exporter:
|
|||||||
repository: goharbor/harbor-exporter
|
repository: goharbor/harbor-exporter
|
||||||
tag: v2.7.4
|
tag: v2.7.4
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: vkvm-us2
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
cacheDuration: 23
|
cacheDuration: 23
|
||||||
|
@ -30,7 +30,7 @@ spec:
|
|||||||
- key: kubernetes.io/hostname
|
- key: kubernetes.io/hostname
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- claw-hk2
|
- zgocloud-us1
|
||||||
containers:
|
containers:
|
||||||
- name: dockerio
|
- name: dockerio
|
||||||
image: registry:2.8.3
|
image: registry:2.8.3
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: Deployment
|
||||||
|
#kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f compose.yml --namespace searxng -o manifests/
|
kompose.cmd: kompose convert -f compose.yml --namespace searxng -o manifests/
|
||||||
@ -20,14 +21,14 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
io.kompose.service: searxng
|
io.kompose.service: searxng
|
||||||
serviceName: searxng
|
#serviceName: searxng
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: searxng
|
io.kompose.service: searxng
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
dc: vkus
|
region: us
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: SEARXNG_BASE_URL
|
- name: SEARXNG_BASE_URL
|
||||||
@ -49,11 +50,11 @@ spec:
|
|||||||
- SETUID
|
- SETUID
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
volumeMounts:
|
# volumeMounts:
|
||||||
- mountPath: /etc/searxng
|
# - mountPath: /etc/searxng
|
||||||
name: searxng-claim0
|
# name: searxng-claim0
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
# volumes:
|
||||||
- name: searxng-claim0
|
# - name: searxng-claim0
|
||||||
persistentVolumeClaim:
|
# persistentVolumeClaim:
|
||||||
claimName: searxng-claim0
|
# claimName: searxng-claim0
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
region: us
|
region: us
|
||||||
kubernetes.io/hostname: vkvm-us1
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
containers:
|
containers:
|
||||||
- name: pg
|
- name: pg
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
@ -40,5 +40,5 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: pg-data
|
- name: pg-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pg-data-local-vkus1-pvc
|
claimName: pg-data-local-zgus1-pvc
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: pg-data-local-vkus1-pvc
|
name: pg-data-local-zgus1-pvc
|
||||||
namespace: taw
|
namespace: taw
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
@ -10,5 +10,5 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
storageClassName: local-vkus1
|
storageClassName: local-zgus1
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ spec:
|
|||||||
app: redis
|
app: redis
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
#dc: aliyun-gz
|
|
||||||
region: us
|
region: us
|
||||||
|
kubernetes.io/hostname: zgocloud-us1
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
@ -34,5 +34,5 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: taw-redis-data
|
- name: taw-redis-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: taw-redis-data-local-vkus1-pvc
|
claimName: taw-redis-data-local-zgus1-pvc
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: taw-redis-data-local-vkus1-pvc
|
name: taw-redis-data-local-zgus1-pvc
|
||||||
namespace: taw
|
namespace: taw
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
@ -10,5 +10,5 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
storageClassName: local-vkus1
|
storageClassName: local-zgus1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user