Skip to content

Instantly share code, notes, and snippets.

@cwansart
Created March 21, 2020 18:48
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 cwansart/521fafc6220b9e31c0bcc12920a26245 to your computer and use it in GitHub Desktop.
Save cwansart/521fafc6220b9e31c0bcc12920a26245 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- port: 80
targetPort: 80
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment