refactor(deployment): 将应用从 gatewayyy 重命名为 nginix
- 更新了 deployment、ingress 和 service 文件中的应用名称 - 修改了相关的服务和 Ingress 资源名称 - 更新了容器镜像地址
This commit is contained in:
		
							parent
							
								
									b5c59cfd99
								
							
						
					
					
						commit
						cb4613f913
					
				@ -3,19 +3,19 @@ kind: Deployment
 | 
				
			|||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  creationTimestamp: null
 | 
					  creationTimestamp: null
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    app: gatewayyy
 | 
					    app: nginix
 | 
				
			||||||
  name: gatewayyy
 | 
					  name: nginix
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  replicas: 1
 | 
					  replicas: 1
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    matchLabels:
 | 
					    matchLabels:
 | 
				
			||||||
      app: gatewayyy
 | 
					      app: nginix
 | 
				
			||||||
  strategy: {}
 | 
					  strategy: {}
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    metadata:
 | 
					    metadata:
 | 
				
			||||||
      creationTimestamp: null
 | 
					      creationTimestamp: null
 | 
				
			||||||
      labels:
 | 
					      labels:
 | 
				
			||||||
        app: gatewayyy
 | 
					        app: nginix
 | 
				
			||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - image: docker.m.ixdev.cn/library/nginx:latest
 | 
					      - image: docker.m.ixdev.cn/library/nginx:latest
 | 
				
			||||||
 | 
				
			|||||||
@ -1,16 +1,16 @@
 | 
				
			|||||||
apiVersion: networking.k8s.io/v1
 | 
					apiVersion: networking.k8s.io/v1
 | 
				
			||||||
kind: Ingress
 | 
					kind: Ingress
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: gatewayyy-ingress
 | 
					  name: nginix-ingress
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  rules:
 | 
					  rules:
 | 
				
			||||||
  - host: gatewayyy.example.com
 | 
					  - host: nginix.example.com
 | 
				
			||||||
    http:
 | 
					    http:
 | 
				
			||||||
      paths:
 | 
					      paths:
 | 
				
			||||||
      - path: /
 | 
					      - path: /
 | 
				
			||||||
        pathType: Prefix
 | 
					        pathType: Prefix
 | 
				
			||||||
        backend:
 | 
					        backend:
 | 
				
			||||||
          service:
 | 
					          service:
 | 
				
			||||||
            name: gatewayyy-service
 | 
					            name: nginix-service
 | 
				
			||||||
            port:
 | 
					            port:
 | 
				
			||||||
              number: 80
 | 
					              number: 80
 | 
				
			||||||
@ -1,10 +1,10 @@
 | 
				
			|||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: Service
 | 
					kind: Service
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: gatewayyy-service
 | 
					  name: nginix-service
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    app: gatewayyy
 | 
					    app: nginix
 | 
				
			||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
    - protocol: TCP
 | 
					    - protocol: TCP
 | 
				
			||||||
      port: 80
 | 
					      port: 80
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user