Created
May 4, 2021 19:39
-
-
Save ng-the-engineer/14cde274798ac207e37e56d9fff3b6d8 to your computer and use it in GitHub Desktop.
Code snippet of tutorial node api k8s
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: tutorial-node-api-k8s | |
| spec: | |
| replicas: 2 | |
| selector: | |
| matchLabels: | |
| name: tutorial-node-api-k8s | |
| template: | |
| metadata: | |
| labels: | |
| name: tutorial-node-api-k8s | |
| spec: | |
| containers: | |
| - name: tutorial-node-api-k8s | |
| image: okteto.dev/tutorial-node-api-k8s:latest | |
| ports: | |
| - containerPort: 3001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment