flux/apps/theburgess-family/deployment.yaml

65 lines
1.3 KiB
YAML

apiVersion: v1
kind: Namespace
metadata:
name: theburgess-family
---
apiVersion: v1
kind: Service
metadata:
name: theburgess-family-svc
spec:
selector:
app: TheBurgess_Family
ports:
- protocol: TCP
port: 3000
targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: theburgess-family
spec:
selector:
matchLabels:
app: TheBurgess_Family
replicas: 2
template:
metadata:
labels:
app: TheBurgess_Family
spec:
containers:
- name: theburgess-family-site
image: ghcr.io/simplysynced/theburgess_family:latest
ports:
- name: http
containerPort: 3000
protocol: TCP
imagePullSecrets:
- name: github-registry-key
ingress:
enabled: true
className: nginx
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: theburgess-family-ingress
namespace: theburgess-family
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: theburgess.family
http:
paths:
- backend:
service:
name: theburgess-family-svc
port:
number: 3000
path: /
pathType: ImplementationSpecific