add deploy config

This commit is contained in:
2022-09-19 10:58:55 +07:00
parent 2d93626aec
commit 274d7379d7
2 changed files with 31 additions and 2 deletions

26
docker/k8s.yaml Normal file
View File

@@ -0,0 +1,26 @@
---
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: hello
template:
metadata:
namespace: hello-world
labels:
app: hello
spec:
containers:
- name: python_api
image: cr.yandex/__YA_REGISTRY__/__DOCKER_IMAGE__
imagePullPolicy: Always