36 lines
		
	
	
		
			667 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			667 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: docs-app 
 | 
						|
  namespace: app 
 | 
						|
spec:
 | 
						|
  replicas: 2
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app: docs 
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app: docs 
 | 
						|
    spec:
 | 
						|
      imagePullSecrets:
 | 
						|
      - name: my-aliyun
 | 
						|
      containers:
 | 
						|
        - name: docs 
 | 
						|
          image: crpi-pqfsp88s5zx2zwfq.cn-hangzhou.personal.cr.aliyuncs.com/devstar/devstar_introduction:v1 
 | 
						|
          ports:
 | 
						|
            - containerPort: 80
 | 
						|
---
 | 
						|
apiVersion: v1
 | 
						|
kind: Service
 | 
						|
metadata:
 | 
						|
  name: docs-server-svc  
 | 
						|
  namespace: app 
 | 
						|
spec:
 | 
						|
  type: NodePort
 | 
						|
  ports:
 | 
						|
    - port: 80
 | 
						|
      targetPort: 80
 | 
						|
      nodePort: 31333
 | 
						|
  selector:
 | 
						|
    app: docs  |