Add codenew shortcode to configure-pod-configmap task file and sanitize the example files (#13078)

This commit is contained in:
Dani Comnea
2019-03-12 03:28:38 +00:00
committed by Kubernetes Prow Robot
parent 5e50314b27
commit e38f800d81
14 changed files with 287 additions and 214 deletions
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
spec:
containers:
- name: test-container
image: k8s.gcr.io/busybox
command: [ "/bin/sh", "-c", "env" ]
env:
# Define the environment variable
- name: SPECIAL_LEVEL_KEY
valueFrom:
configMapKeyRef:
# The ConfigMap containing the value you want to assign to SPECIAL_LEVEL_KEY
name: special-config
# Specify the key associated with the value
key: special.how
restartPolicy: Never