mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Use v1 API
This commit is contained in:
		@@ -109,7 +109,7 @@ Create a file named busybox.yaml with the
 | 
				
			|||||||
following contents:
 | 
					following contents:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
apiVersion: v1beta3
 | 
					apiVersion: v1
 | 
				
			||||||
kind: Pod
 | 
					kind: Pod
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: busybox
 | 
					  name: busybox
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: v1beta3
 | 
					apiVersion: v1
 | 
				
			||||||
kind: ReplicationController
 | 
					kind: ReplicationController
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: kube-dns-v4
 | 
					  name: kube-dns-v4
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: v1beta3
 | 
					apiVersion: v1
 | 
				
			||||||
kind: Service
 | 
					kind: Service
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: kube-dns
 | 
					  name: kube-dns
 | 
				
			||||||
@@ -10,7 +10,7 @@ metadata:
 | 
				
			|||||||
spec:
 | 
					spec:
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    k8s-app: kube-dns
 | 
					    k8s-app: kube-dns
 | 
				
			||||||
  portalIP:  {{ pillar['dns_server'] }}
 | 
					  clusterIP:  {{ pillar['dns_server'] }}
 | 
				
			||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
  - name: dns
 | 
					  - name: dns
 | 
				
			||||||
    port: 53
 | 
					    port: 53
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user