add profanity

This commit is contained in:
James Andariese 2023-04-27 19:27:07 -05:00
parent 0075f3a7f3
commit f604c7ae84
4 changed files with 69 additions and 0 deletions

24
profanity/deployment.yaml Normal file
View File

@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: profanity
name: profanity
spec:
replicas: 1
selector:
matchLabels:
app: profanity
strategy:
type: Recreate
template:
metadata:
labels:
app: profanity
spec:
containers:
- env:
- name: HOST
value: 0.0.0.0
image: ghcr.io/jamesandariese/profanity:main
name: profanity
restartPolicy: Always

24
profanity/ingress.yaml Normal file
View File

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: profanity
namespace: profanity
annotations:
haproxy-ingress.github.io/ssl-redirect: "true"
spec:
ingressClassName: haproxy
rules:
- host: profanity.strudelline.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: profanity
port:
number: 5000
tls:
- hosts:
- profanity.strudelline.net
secretName: wildcard-tls

4
profanity/ns.yaml Normal file
View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: profanity

17
profanity/svc.yaml Normal file
View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: profanity
name: profanity
namespace: profanity
spec:
selector:
app: profanity
ports:
- name: http
port: 5000
protocol: TCP
targetPort: 5000
clusterIP: None
type: ClusterIP