Skip to content

Instantly share code, notes, and snippets.

@wuestkamp
Last active August 28, 2019 10:12
Show Gist options
  • Save wuestkamp/678b1257428d847a052b6dcb812ab06d to your computer and use it in GitHub Desktop.
Save wuestkamp/678b1257428d847a052b6dcb812ab06d to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
labels:
app: service
name: service
spec:
ports:
- name: 80-80
nodePort: 30080
port: 80
protocol: TCP
targetPort: 80
selector:
id: app
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
replicas: 1
selector:
matchLabels:
id: app
template:
metadata:
labels:
id: app
spec:
containers:
- image: XXX
name: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment