add kubernetes resources for stampy mctimestamp

This commit is contained in:
brechin 2023-06-17 19:07:25 -05:00
parent b76ed296ec
commit bec4762389

View File

@ -0,0 +1,67 @@
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
value: 5000
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