Files
lenochka/deploy/kube/deployment.yml
2021-08-08 14:18:38 +04:00

32 lines
765 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: lenochka
annotations:
app.gitlab.com/env: $CI_ENVIRONMENT_SLUG
app.gitlab.com/app: $CI_PROJECT_PATH_SLUG
spec:
selector:
matchLabels:
app: lenochka-bot
template:
metadata:
annotations:
app.gitlab.com/env: $CI_ENVIRONMENT_SLUG
app.gitlab.com/app: $CI_PROJECT_PATH_SLUG
labels:
app: lenochka-bot
spec:
imagePullSecrets:
- name: "$PULL_SECRET"
containers:
- name: lenochka-bot
image: docker.le-memese.com/bots/lenochka-bot:$APP_VERSION
resources:
limits:
cpu: 10m
memory: 60Mi
envFrom:
- configMapRef:
name: "$ENVCONF"