Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created June 16, 2019 08:53
Show Gist options
  • Save mlabouardy/edfe1a81092a8ee5f95b0bcaa6cf1147 to your computer and use it in GitHub Desktop.
Save mlabouardy/edfe1a81092a8ee5f95b0bcaa6cf1147 to your computer and use it in GitHub Desktop.
Kubernetes deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
replicas: 1
selector:
matchLabels:
app: app
template:
metadata:
labels:
app: app
spec:
containers:
- name: app
image: registry.serverlessmovies.com/mlabouardy/app:latest
ports:
- containerPort: 3000
imagePullPolicy: Always
imagePullSecrets:
- name: nexus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment