Updates deployment.yaml, removes cert.yaml

This commit is contained in:
Hugo Müller-Downing 2022-07-24 12:15:37 +10:00
parent 332f017748
commit 50139be273
2 changed files with 11 additions and 23 deletions

View file

@ -1,19 +0,0 @@
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: ascii-live-tls-prod-cert
namespace: ascii-live
spec:
secretName: ascii-live-tls-prod-cert
dnsNames:
- ascii.live
acme:
config:
- http01:
ingressClass: nginx
domains:
- ascii.live
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer

View file

@ -1,9 +1,12 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ascii-live
namespace: ascii-live
spec:
selector:
matchLabels:
app: ascii-live
template:
metadata:
labels:
@ -29,12 +32,13 @@ spec:
targetPort: 8080
port: 8080
---
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ascii-live
namespace: ascii-live
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
kubernetes.io/preserve-host: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
@ -44,9 +48,12 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: ascii-live
servicePort: 8080
service:
name: ascii-live
port:
number: 8080
tls:
- secretName: ascii-live-tls-prod-cert
hosts: