Skip to content

Instantly share code, notes, and snippets.

@wuestkamp
Created August 28, 2019 09:53
Show Gist options
  • Save wuestkamp/33fe128d2c67fb96d15465bdb013ca8e to your computer and use it in GitHub Desktop.
Save wuestkamp/33fe128d2c67fb96d15465bdb013ca8e 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: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
replicas: 3
selector:
matchLabels:
id: app
template:
metadata:
labels:
id: app
spec:
containers:
- image: nginx:stable
name: nginx
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment