Created
April 25, 2023 23:11
-
-
Save EvilFreelancer/2b4d6d4cff73563c0984eaa39575f1b3 to your computer and use it in GitHub Desktop.
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: my-deployment | |
| namespace: my-namespace | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: | |
| app: my-app | |
| template: | |
| metadata: | |
| labels: | |
| app: my-app | |
| spec: | |
| containers: | |
| - name: my-app-container | |
| image: my-app-image:latest | |
| ports: | |
| - containerPort: 8080 | |
| volumeMounts: | |
| - name: config-volume | |
| mountPath: /app/config | |
| volumes: | |
| - name: config-volume | |
| configMap: | |
| name: my-deployment-config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment