Skip to content

Instantly share code, notes, and snippets.

@wuestkamp
Created August 28, 2019 09:55
Show Gist options
  • Save wuestkamp/a648315861f1506ac9f6ecb3ecbccd68 to your computer and use it in GitHub Desktop.
Save wuestkamp/a648315861f1506ac9f6ecb3ecbccd68 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: nginx:1.17.3
name: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment