kube-cascade/stampy-mctimestamp/deploy.yaml

73 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2023-07-22 19:33:41 +00:00
---
apiVersion: v1
kind: Namespace
metadata:
name: stampy-mctimestamp
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: stampy-mctimestamp
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-2cd3164
name: stampy-mctimestamp
restartPolicy: Always
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: stampy-mctimestamp
namespace: stampy-mctimestamp
spec:
ingressClassName: istio
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: stampy-mctimestamp
spec:
selector:
app: stampy-mctimestamp
ports:
- name: http
port: 5000
protocol: TCP
targetPort: 5000
clusterIP: None
type: ClusterIP