diff --git a/content/zh/examples/pods/simple-pod.yaml b/content/zh/examples/pods/simple-pod.yaml new file mode 100644 index 0000000000..4208f4b365 --- /dev/null +++ b/content/zh/examples/pods/simple-pod.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Pod +metadata: + name: nginx +spec: + containers: + - name: nginx + image: nginx:1.7.9 + ports: + - containerPort: 80 diff --git a/content/zh/examples/pods/storage/redis.yaml b/content/zh/examples/pods/storage/redis.yaml new file mode 100644 index 0000000000..cb06456d4b --- /dev/null +++ b/content/zh/examples/pods/storage/redis.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Pod +metadata: + name: redis +spec: + containers: + - name: redis + image: redis + volumeMounts: + - name: redis-storage + mountPath: /data/redis + volumes: + - name: redis-storage + emptyDir: {}