Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created October 19, 2023 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadmcrowell/73382bf2eb2034bfcae521da4a315b38 to your computer and use it in GitHub Desktop.
Save chadmcrowell/73382bf2eb2034bfcae521da4a315b38 to your computer and use it in GitHub Desktop.
Dallas Kubernetes Workshop - ConfigMaps
# use the following lab environment:
# https://studyk8s.club/cka-configmaps
# create the configmap
cat << EOF > redis-configMap.yaml
apiVersion: v1
data:
redis-config: |
maxmemory: 2mb
maxmemory-policy: allkeys-lru
kind: ConfigMap
metadata:
creationTimestamp: null
name: redis-config
EOF
# create the pod that uses the configMap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment