Skip to content

Instantly share code, notes, and snippets.

@gotraveltoworld
Created February 7, 2019 14:58
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 gotraveltoworld/ee1dc6a2de99790d09d303d79fffe6dc to your computer and use it in GitHub Desktop.
Save gotraveltoworld/ee1dc6a2de99790d09d303d79fffe6dc to your computer and use it in GitHub Desktop.
To build my first pod.yaml.
# first_pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: k8s-pod-nodejs
labels:
app: webserver
spec:
containers:
- name: k8s-pod-nodejs
image: futuretraveler/nodejs-example
ports:
- containerPort: 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment