Skip to content

Instantly share code, notes, and snippets.

@rupinus85
Last active January 11, 2019 01:41
Show Gist options
  • Save rupinus85/1590d489f8b56c32624ab0da3400b080 to your computer and use it in GitHub Desktop.
Save rupinus85/1590d489f8b56c32624ab0da3400b080 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: gs-spring-boot-docker-deployment
labels:
app: gs-spring-boot-docker
spec:
replicas: 1
selector:
matchLabels:
app: gs-spring-boot-docker
template:
metadata:
labels:
app: gs-spring-boot-docker
spec:
containers:
- name: gs-spring-boot-docker
image: dtlabs/gs-spring-boot-docker:1.0
ports:
- containerPort: 8080
imagePullPolicy: Always
resources:
requests:
memory: "256Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "500m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment