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