- 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.
39 lines
793 B
YAML
39 lines
793 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: redis
|
|
namespace: taw
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
nodeSelector:
|
|
region: us
|
|
kubernetes.io/hostname: zgocloud-us1
|
|
containers:
|
|
- name: redis
|
|
image: redis:7-alpine
|
|
ports:
|
|
- containerPort: 3000
|
|
name: redis
|
|
env:
|
|
- name: TZ
|
|
value: "Asia/Shanghai"
|
|
volumeMounts:
|
|
- name: taw-redis-data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: taw-redis-data
|
|
persistentVolumeClaim:
|
|
claimName: taw-redis-data-local-zgus1-pvc
|
|
|