Pod yaml command and change pod curl (#14448)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5c89ab7218
commit
7f888c11f3
@@ -57,7 +57,7 @@ Add the pod resource config to the `kustomization.yaml`:
|
|||||||
{{< codenew file="pods/config/redis-pod.yaml" >}}
|
{{< codenew file="pods/config/redis-pod.yaml" >}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -OL https://k8s.io/examples/pods/config/redis-pod.yaml
|
curl -OL https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/pods/config/redis-pod.yaml
|
||||||
|
|
||||||
cat <<EOF >>./kustomization.yaml
|
cat <<EOF >>./kustomization.yaml
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:5.0.4
|
image: redis:5.0.4
|
||||||
|
command:
|
||||||
|
- redis-server
|
||||||
|
- "/redis-master/redis.conf"
|
||||||
env:
|
env:
|
||||||
- name: MASTER
|
- name: MASTER
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|||||||
Reference in New Issue
Block a user