mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Fix downward API
This commit is contained in:
@@ -21,10 +21,8 @@ spec:
|
|||||||
cpu: 1
|
cpu: 1
|
||||||
env:
|
env:
|
||||||
- name: MAX_HEAP_SIZE
|
- name: MAX_HEAP_SIZE
|
||||||
key: MAX_HEAP_SIZE
|
|
||||||
value: 512M
|
value: 512M
|
||||||
- name: HEAP_NEWSIZE
|
- name: HEAP_NEWSIZE
|
||||||
key: HEAP_NEWSIZE
|
|
||||||
value: 100M
|
value: 100M
|
||||||
image: "kubernetes/cassandra:v2"
|
image: "kubernetes/cassandra:v2"
|
||||||
name: cassandra
|
name: cassandra
|
||||||
@@ -39,4 +37,3 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|
||||||
|
@@ -31,5 +31,3 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ started](../../docs/getting-started-guides) for installation instructions for yo
|
|||||||
Containers consume the downward API using environment variables. The downward API allows
|
Containers consume the downward API using environment variables. The downward API allows
|
||||||
containers to be injected with the name and namespace of the pod the container is in.
|
containers to be injected with the name and namespace of the pod the container is in.
|
||||||
|
|
||||||
Use the `examples/secrets/secret-pod.yaml` file to create a Pod with a container that consumes the
|
Use the `examples/downward-api/dapi-pod.yaml` file to create a Pod with a container that consumes the
|
||||||
downward API.
|
downward API.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Reference in New Issue
Block a user