From f8ce83677edc6392afe6cc0e68501f1e91cc3d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 9 Feb 2021 18:39:35 +0100 Subject: [PATCH] init manifests --- configmap.yml | 10 ++++++++++ deployment.yaml | 30 ++++++++++++++++++++++++++++++ ingress.yml | 21 +++++++++++++++++++++ service.yaml | 16 ++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 configmap.yml create mode 100644 deployment.yaml create mode 100644 ingress.yml create mode 100644 service.yaml diff --git a/configmap.yml b/configmap.yml new file mode 100644 index 0000000..fc53e44 --- /dev/null +++ b/configmap.yml @@ -0,0 +1,10 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: hanyadikhetvan-config + labels: + app: hanyadikhetvan + namespace: hanyadikhetvan +data: + HanyadikHetVan__StartDate: "2021-02-01" diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..b3bc365 --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hanyadikhetvan + namespace: hanyadikhetvan + labels: + app: hanyadikhetvan +spec: + replicas: 1 + selector: + matchLabels: + app: hanyadikhetvan + strategy: + type: Recreate + template: + metadata: + labels: + app: hanyadikhetvan + spec: + containers: + - name: dotnetapp + image: registry.kmlabz.com/tormakris/hanyadikhetvan:18 + imagePullPolicy: Always + ports: + - containerPort: 80 + envFrom: + - configMapRef: + name: hanyadikhetvan-config + imagePullSecrets: + - name: regcred diff --git a/ingress.yml b/ingress.yml new file mode 100644 index 0000000..637ac37 --- /dev/null +++ b/ingress.yml @@ -0,0 +1,21 @@ +apiVersion: networking.k8s.io/v1beta1 +kind: Ingress +metadata: + name: hanyadikhetvan + namespace: hanyadikhetvan + annotations: + kubernetes.io/ingress.class: "nginx" + cert-manager.io/cluster-issuer: "letsencrypt-prod" +spec: + tls: + - hosts: + - hanyadikhetvan.k8s.kmlabz.com + secretName: hanyadikhetvan-cert-secret + rules: + - host: hanyadikhetvan.k8s.kmlabz.com + http: + paths: + - path: / + backend: + serviceName: hanyadikhetvan-service + servicePort: 80 diff --git a/service.yaml b/service.yaml new file mode 100644 index 0000000..d694e08 --- /dev/null +++ b/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: hanyadikhetvan-service + namespace: hanyadikhetvan + labels: + app: hanyadikhetvan +spec: + ports: + - name: hanyadikhetvan + port: 80 + targetPort: 80 + protocol: TCP + selector: + app: hanyadikhetvan + type: ClusterIP