2023-06-18 00:07:25 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
namespace: brechy-playground
|
|
|
|
name: stampy-mctimestamp
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: stampy-mctimestamp
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: stampy-mctimestamp
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: PORT
|
2023-06-18 00:11:39 +00:00
|
|
|
value: "5000"
|
2023-06-18 00:07:25 +00:00
|
|
|
image: ghcr.io/brechy/stampy-mctimestamp:sha-96e5bb1
|
|
|
|
name: stampy-mctimestamp
|
|
|
|
restartPolicy: Always
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: stampy-mctimestamp
|
|
|
|
namespace: brechy-playground
|
|
|
|
annotations:
|
|
|
|
haproxy-ingress.github.io/ssl-redirect: "true"
|
|
|
|
spec:
|
|
|
|
ingressClassName: haproxy
|
|
|
|
rules:
|
|
|
|
- host: stampy-mctimestamp.strudelline.net
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: stampy-mctimestamp
|
|
|
|
port:
|
|
|
|
number: 5000
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- stampy-mctimestamp.strudelline.net
|
|
|
|
secretName: wildcard-tls
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: stampy-mctimestamp
|
|
|
|
name: stampy-mctimestamp
|
|
|
|
namespace: brechy-playground
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: stampy-mctimestamp
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 5000
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 5000
|
|
|
|
clusterIP: None
|
|
|
|
type: ClusterIP
|