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