Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created April 2, 2021 06:07
Show Gist options
  • Save lordofthejars/d386a28c07a54a6fd8717ce78a652b8b to your computer and use it in GitHub Desktop.
Save lordofthejars/d386a28c07a54a6fd8717ce78a652b8b to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: registry-deployment
spec:
replicas: 1
selector:
matchLabels:
app: registry-demo
template:
metadata:
labels:
app: registry-demo
spec:
containers:
- name: registry-demo
image: registry:2.7.1
imagePullPolicy: Always
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: registry
spec:
selector:
app: registry-demo
ports:
- protocol: TCP
port: 5000
targetPort: 5000
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment