摘要: secret apiVersion: v1 data: password: MTIzNDU2 username: YWRtaW4= kind: Secret metadata: creationTimestamp: null name: my-secret configmap apiVersion: 阅读全文
posted @ 2020-12-15 17:37 Richardo-M-Lu 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: spec: replicas: 6 # 定义副本数量 strategy: rollingUpdate: # 滚动更新通过参数 maxSurge 和 maxUnavailable 来控制副本替换的数量 maxSurge: 35% maxUnavailable: 35% template: spec: 阅读全文
posted @ 2020-12-15 17:29 Richardo-M-Lu 阅读(451) 评论(0) 推荐(0) 编辑
摘要: pv apiVersion: v1 kind: PersistentVolume metadata: name: my-pv spec: capacity: storage: 5Gi accessModes: - ReadWriteMany nfs: path: /data/nfs server: 阅读全文
posted @ 2020-12-15 16:09 Richardo-M-Lu 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: service apiVersion: v1 kind: Service metadata: creationTimestamp: null labels: app: nginx name: nginx1 spec: ports: - port: 80 protocol: TCP targetPor 阅读全文
posted @ 2020-12-15 15:13 Richardo-M-Lu 阅读(602) 评论(0) 推荐(0) 编辑
摘要: job apiVersion: batch/v1 kind: Job metadata: creationTimestamp: null name: pi spec: template: metadata: creationTimestamp: null spec: containers: - im 阅读全文
posted @ 2020-12-15 15:02 Richardo-M-Lu 阅读(616) 评论(0) 推荐(0) 编辑
摘要: deployments apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: app: nginx name: nginx spec: replicas: 1 selector: matchLab 阅读全文
posted @ 2020-12-15 14:58 Richardo-M-Lu 阅读(212) 评论(0) 推荐(0) 编辑