From ebe2de06f41aa0c23062f21cf3c771c61dc20639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Wed, 17 Jul 2019 10:53:36 +0200 Subject: [PATCH] Update deployment --- deployment.yaml | 67 ++++++++++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index 48e9909..f617f0c 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,30 +1,6 @@ apiVersion: v1 kind: List items: -- apiVersion: extensions/v1beta1 - kind: Ingress - metadata: - annotations: - certmanager.k8s.io/cluster-issuer: letsencrypt-prod - kubernetes.io/tls-acme: "true" - nginx.ingress.kubernetes.io/ssl-redirect: "false" - generation: 2 - name: website - namespace: rene-jochums-at - spec: - rules: - - host: rene.jochums.at - http: - paths: - - backend: - serviceName: nginx - servicePort: 80 - path: / - tls: - - hosts: - - rene.jochums.at - secretName: website-prod-tls - - apiVersion: extensions/v1beta1 kind: Deployment metadata: @@ -33,15 +9,13 @@ items: generation: 3 name: nginx namespace: rene-jochums-at - selfLink: /apis/extensions/v1beta1/namespaces/rene-jochums-at/deployments/nginx - uid: 1454b908-a7c4-11e9-8ae7-d6e9951087b2 spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: - workload.user.cattle.io/workloadselector: deployment-rene-jochums-at-nginx + container: nginx strategy: rollingUpdate: maxSurge: 1 @@ -77,4 +51,41 @@ items: restartPolicy: Always schedulerName: default-scheduler securityContext: {} - terminationGracePeriodSeconds: 30 \ No newline at end of file + terminationGracePeriodSeconds: 30 + +- kind: Service + apiVersion: v1 + metadata: + name: nginx + spec: + type: ClusterIP + selector: + service: nginx + ports: + - protocol: TCP + port: 80 + targetPort: 80 + +- kind: Ingress + apiVersion: extensions/v1beta1 + metadata: + annotations: + certmanager.k8s.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "false" + generation: 2 + name: website + namespace: rene-jochums-at + spec: + rules: + - host: rene.jochums.at + http: + paths: + - backend: + serviceName: nginx + servicePort: 80 + path: / + tls: + - hosts: + - rene.jochums.at + secretName: website-prod-tls \ No newline at end of file