75 lines
1.3 KiB
YAML
75 lines
1.3 KiB
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: e6-gallery
|
||
|
namespace: e6-gallery
|
||
|
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: e6-gallery
|
||
|
replicas: 2
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: e6-gallery
|
||
|
spec:
|
||
|
imagePullSecrets:
|
||
|
- name: regcred
|
||
|
containers:
|
||
|
- name: e6-gallery
|
||
|
image: git.gmem.ca/private/e6-gallery:latest
|
||
|
ports:
|
||
|
- containerPort: 3000
|
||
|
name: http
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 3000
|
||
|
failureThreshold: 1
|
||
|
initialDelaySeconds: 10
|
||
|
periodSeconds: 10
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 3000
|
||
|
failureThreshold: 1
|
||
|
periodSeconds: 10
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: e6-gallery
|
||
|
namespace: e6-gallery
|
||
|
spec:
|
||
|
selector:
|
||
|
app: e6-gallery
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 3000
|
||
|
targetPort: 3000
|
||
|
---
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: e6-gallery
|
||
|
annotations:
|
||
|
cert-manager.io/issuer: "le-issuer"
|
||
|
namespace: e6-gallery
|
||
|
spec:
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- e6.gmem.ca
|
||
|
rules:
|
||
|
- host: e6.gmem.ca
|
||
|
http:
|
||
|
paths:
|
||
|
- backend:
|
||
|
service:
|
||
|
name: e6-gallery
|
||
|
port:
|
||
|
number: 3000
|
||
|
path: /
|
||
|
pathType: Prefix
|