68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: simplysyncedllc-com
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: simplysyncedllc-com-svc
|
|
spec:
|
|
selector:
|
|
app: SimplySyncedLLC_com
|
|
ports:
|
|
- protocol: TCP
|
|
port: 3000
|
|
targetPort: 3000
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: simplysyncedllc-com
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: SimplySyncedLLC_com
|
|
replicas: 2
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: SimplySyncedLLC_com
|
|
spec:
|
|
containers:
|
|
- name: simplysyncedllc-com-site
|
|
image: ghcr.io/simplysynced/simplysyncedllc_website:latest
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
protocol: TCP
|
|
envFrom:
|
|
- secretRef:
|
|
name: simplysyncedllc-com-secrets
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
ingress:
|
|
enabled: true
|
|
className: nginx
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: simplysyncedllc-com-ingress
|
|
namespace: simplysyncedllc-com
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: simplysyncedllc.com
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: simplysyncedllc-com-svc
|
|
port:
|
|
number: 3000
|
|
path: /
|
|
pathType: ImplementationSpecific
|