Files
netology-devops-gitlab/docker/k8s.yaml
2022-09-19 11:06:00 +07:00

27 lines
481 B
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: python-api
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-api-deployment
namespace: python-api
spec:
replicas: 1
selector:
matchLabels:
app: python-api
template:
metadata:
namespace: python-api
labels:
app: python-api
spec:
containers:
- name: python_api
image: cr.yandex/__YA_REGISTRY__/__DOCKER_IMAGE__
imagePullPolicy: Always