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" >}}
|
||||
|
||||
```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
|
||||
resources:
|
||||
|
||||
@@ -6,6 +6,9 @@ spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: redis:5.0.4
|
||||
command:
|
||||
- redis-server
|
||||
- "/redis-master/redis.conf"
|
||||
env:
|
||||
- name: MASTER
|
||||
value: "true"
|
||||
|
||||
Reference in New Issue
Block a user