Skip to content

Instantly share code, notes, and snippets.

@Goodsmileduck
Created December 2, 2019 12:26
Show Gist options
  • Save Goodsmileduck/dcd3f9df10afc60fda0a8725ad577b25 to your computer and use it in GitHub Desktop.
Save Goodsmileduck/dcd3f9df10afc60fda0a8725ad577b25 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
name: jx-skill
namespace: jx-staging
spec:
selector:
matchLabels:
app: jx-skill
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: jx-skill
spec:
containers:
- image: cr.yandex/yandex-id/skill:0.0.1
imagePullPolicy: IfNotPresent
name: skill
ports:
- containerPort: 5000
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
imagePullSecrets:
- name: cr.yandex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment