mirror of https://github.com/k3s-io/k3s
Merge pull request #9516 from caesarxuchao/cluster-dns-AND-downward-api-v1
examples/cluster-dns and examples/downward-api to v1pull/6/head
commit
c5e1c87ae7
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
metadata:
|
||||
name: dns-backend
|
||||
|
@ -19,4 +19,3 @@ spec:
|
|||
ports:
|
||||
- name: backend-port
|
||||
containerPort: 8000
|
||||
protocol: tcp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
kind: Service
|
||||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: dns-backend
|
||||
spec:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: dns-frontend
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "development"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "production"
|
||||
|
|
|
@ -27,7 +27,7 @@ This pod runs the `env` command in a container that consumes the downward API.
|
|||
through the pod logs to see that the pod was injected with the correct values:
|
||||
|
||||
```shell
|
||||
$ kubectl log dapi-test-pod | grep POD_
|
||||
$ kubectl logs dapi-test-pod | grep POD_
|
||||
2015-04-30T20:22:18.568024817Z POD_NAME=dapi-test-pod
|
||||
2015-04-30T20:22:18.568087688Z POD_NAMESPACE=default
|
||||
```
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1beta3
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: dapi-test-pod
|
||||
|
|
Loading…
Reference in New Issue