58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
|
apiVersion: cert-manager.io/v1
|
||
|
kind: Certificate
|
||
|
metadata:
|
||
|
name: nocodelytics-dashboard
|
||
|
spec:
|
||
|
commonName: api.nocodelytics.com
|
||
|
dnsNames:
|
||
|
- api.nocodelytics.com
|
||
|
---
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: nocodelytics-dashboard-nginx-ingress
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: api.nocodelytics.com
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: ssl-redirect
|
||
|
port:
|
||
|
name: use-annotation
|
||
|
- path: /
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: nocodelytics-dashboard
|
||
|
port:
|
||
|
number: 8080
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- api.nocodelytics.com
|
||
|
secretName: nocodelytics-dashboard-net-tls
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: nocodelytics-dashboard
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
ms: nocodelytics-dashboard
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
ms: nocodelytics-dashboard
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: nocodelytics-dashboard
|
||
|
image: container-registry.nocodelytics.com/nocodelytics/dashboard:latest
|
||
|
env:
|
||
|
- name: NODE_ENV
|
||
|
value: production
|