2024-01-26 13:51:21 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: devstats-viewer
|
|
|
|
namespace: devstats-viewer
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: devstats-viewer
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: devstats-viewer
|
|
|
|
namespace: devstats-viewer
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: devstats-viewer
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: devstats-viewer
|
|
|
|
spec:
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: docker-config
|
|
|
|
containers:
|
|
|
|
- name: web
|
|
|
|
image: rg.fr-par.scw.cloud/averagemarcus/devstats-viewer:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: web
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 10Mi
|
|
|
|
requests:
|
|
|
|
memory: 10Mi
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: devstats-viewer
|
|
|
|
namespace: devstats-viewer
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
ingress.kubernetes.io/ssl-redirect: "true"
|
|
|
|
spec:
|
2024-01-26 14:05:15 +00:00
|
|
|
ingressClassName: nginx
|
2024-01-26 13:51:21 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
2024-01-26 13:57:02 +00:00
|
|
|
- devstats.cluster.fun
|
2024-01-26 13:51:21 +00:00
|
|
|
secretName: devstats-viewer-ingress
|
|
|
|
rules:
|
2024-01-26 13:57:02 +00:00
|
|
|
- host: devstats.cluster.fun
|
2024-01-26 13:51:21 +00:00
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: devstats-viewer
|
|
|
|
port:
|
|
|
|
number: 80
|