Created
October 19, 2023 21:32
-
-
Save chadmcrowell/73382bf2eb2034bfcae521da4a315b38 to your computer and use it in GitHub Desktop.
Dallas Kubernetes Workshop - ConfigMaps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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