摘要:        
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
阅读(1572)
评论(0)
推荐(0)
        
            
        
        
摘要:        
spec: replicas: 6 # 定义副本数量 strategy: rollingUpdate: # 滚动更新通过参数 maxSurge 和 maxUnavailable 来控制副本替换的数量 maxSurge: 35% maxUnavailable: 35% template: spec:     阅读全文
posted @ 2020-12-15 17:29
Richardo-M-Lu
阅读(464)
评论(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
阅读(1773)
评论(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
阅读(613)
评论(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
阅读(628)
评论(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
阅读(221)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号