Last active
January 13, 2021 01:23
-
-
Save mrjamiebowman/fbbcaf173880c7729a405e09d5f62cbd to your computer and use it in GitHub Desktop.
Kubernetes Tutorial: ConfigMap Deployment
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: kubernetes-tutorial | |
namespace: mrjamiebowman | |
labels: | |
app: kubernetes-tutorial | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: kubernetes-tutorial | |
template: | |
metadata: | |
labels: | |
app: kubernetes-tutorial | |
spec: | |
containers: | |
- name: kubernetes-tutorial | |
image: mrjamiebowman/kubernetes-tutorial-configmap | |
ports: | |
- containerPort: 8080 | |
volumeMounts: | |
- name: appsettings-volume | |
mountPath: /app/Settings | |
volumes: | |
- name: appsettings-volume | |
configMap: | |
name: appsettings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated