add regional converter
This commit is contained in:
38
k8s.yaml
Normal file
38
k8s.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-converter-deployment
|
||||
namespace: converter
|
||||
labels:
|
||||
app: nginx-converter
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx-converter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx-converter
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: git.danilkolesnikov.ru/danilko09/converter_nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- name: swagger-ui
|
||||
image: swaggerapi/swagger-ui
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: BASE_URL # <--- ADD THIS
|
||||
value: "/docs"
|
||||
- name: URLS
|
||||
value: |
|
||||
[
|
||||
{ "url": "/app_openapi.json", "name": "Product matcher" },
|
||||
{ "url": "/uc_openapi.json", "name": "Unit converter" },
|
||||
{ "url": "/rc_openapi.json", "name": "Product matcher (region)" }
|
||||
]
|
||||
- name: URLS_PRIMARY_NAME
|
||||
value: "Product matcher (region)"
|
||||
Reference in New Issue
Block a user