Commit 133b47b5 authored by Manuel Herold's avatar Manuel Herold

added deployment information

parent a463f079
apiVersion: v1
kind: Service
metadata:
name: dashboard-backend
spec:
type: LoadBalancer
selector:
app: dashboard-backend
ports:
- name: https
port: 443
targetPort: 443
nodePort: 30469
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dashboard-backend
spec:
replicas: 1
selector:
matchLabels:
app: dashboard-backend
template:
metadata:
labels:
app: dashboard-backend
spec:
containers:
- name: dashboard
image: alexx882/demo-backend
ports:
- containerPort: 443
imagePullPolicy: Always
volumeMounts:
- mountPath: /certs
name: articonf
volumes:
- name: articonf
hostPath:
path: /srv/articonf
type: Directory
\ No newline at end of file
...@@ -3,8 +3,8 @@ server { ...@@ -3,8 +3,8 @@ server {
listen 443 ssl; listen 443 ssl;
server_name docker_flask_gunicorn_nginx; server_name docker_flask_gunicorn_nginx;
ssl_certificate /certs/fullchain_live.pem; ssl_certificate /certs/articonf1.crt;
ssl_certificate_key /certs/privkey_live.pem; ssl_certificate_key /certs/articonf1.key;
location / { location / {
proxy_pass http://flask_app:8000; proxy_pass http://flask_app:8000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment