diff --git a/profanity/deployment.yaml b/profanity/deployment.yaml new file mode 100644 index 0000000..ca0f1a5 --- /dev/null +++ b/profanity/deployment.yaml @@ -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 diff --git a/profanity/ingress.yaml b/profanity/ingress.yaml new file mode 100644 index 0000000..3235992 --- /dev/null +++ b/profanity/ingress.yaml @@ -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 diff --git a/profanity/ns.yaml b/profanity/ns.yaml new file mode 100644 index 0000000..1239ee6 --- /dev/null +++ b/profanity/ns.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: profanity diff --git a/profanity/svc.yaml b/profanity/svc.yaml new file mode 100644 index 0000000..a80e90e --- /dev/null +++ b/profanity/svc.yaml @@ -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