Add k8s yaml

main
ilitirit 3 years ago
parent bce9f568c1
commit 162641bf76

@ -0,0 +1,22 @@
webVersion: apps/v1
kind: Deployment
metadata:
name: expedience-web-deployment
namespace: expedience
spec:
replicas: 1
selector:
matchLabels:
app: expedience-web
template:
metadata:
labels:
app: expedience-web
spec:
containers:
- name: expedience-web
image: registry.ilitirit.net/expedience-web:latest
ports:
- containerPort: 80
imagePullSecrets:
- name: registry-credentials

@ -0,0 +1,24 @@
webVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: expedience-web-ingress
namespace: expedience
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/proxy-redirect-from-ssl: "true"
spec:
tls:
- hosts:
- expedience-web.ilitirit.net
secretName: expedience-web-certificate
rules:
- host: expedience-web.ilitirit.net
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: expedience-web-service
port:
number: 80
Loading…
Cancel
Save