init manifests

This commit is contained in:
Torma Kristóf 2021-02-09 18:39:35 +01:00
parent e637df5d61
commit f8ce83677e
4 changed files with 77 additions and 0 deletions

10
configmap.yml Normal file
View File

@ -0,0 +1,10 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: hanyadikhetvan-config
labels:
app: hanyadikhetvan
namespace: hanyadikhetvan
data:
HanyadikHetVan__StartDate: "2021-02-01"

30
deployment.yaml Normal file
View File

@ -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

21
ingress.yml Normal file
View File

@ -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

16
service.yaml Normal file
View File

@ -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