摘要:
secret apiVersion: v1 data: password: MTIzNDU2 username: YWRtaW4= kind: Secret metadata: creationTimestamp: null name: my-secret configmap apiVersion: 阅读全文
摘要:
spec: replicas: 6 # 定义副本数量 strategy: rollingUpdate: # 滚动更新通过参数 maxSurge 和 maxUnavailable 来控制副本替换的数量 maxSurge: 35% maxUnavailable: 35% template: spec: 阅读全文
摘要:
pv apiVersion: v1 kind: PersistentVolume metadata: name: my-pv spec: capacity: storage: 5Gi accessModes: - ReadWriteMany nfs: path: /data/nfs server: 阅读全文
摘要:
service apiVersion: v1 kind: Service metadata: creationTimestamp: null labels: app: nginx name: nginx1 spec: ports: - port: 80 protocol: TCP targetPor 阅读全文
摘要:
job apiVersion: batch/v1 kind: Job metadata: creationTimestamp: null name: pi spec: template: metadata: creationTimestamp: null spec: containers: - im 阅读全文
摘要:
deployments apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: app: nginx name: nginx spec: replicas: 1 selector: matchLab 阅读全文