Skip to content

Instantly share code, notes, and snippets.

@shield-9
Created July 1, 2018 09:59
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 shield-9/581c21d3174c468110376deb6ebc0a1d to your computer and use it in GitHub Desktop.
Save shield-9/581c21d3174c468110376deb6ebc0a1d to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: nginx-svc
labels:
app: nginx
spec:
type: NodePort
ports:
- port: 10080
targetPort: 80
protocol: TCP
name: http
selector:
app: nginx
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-dep
labels:
app: nginx
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.13
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment