init manifests
This commit is contained in:
parent
e637df5d61
commit
f8ce83677e
10
configmap.yml
Normal file
10
configmap.yml
Normal 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
30
deployment.yaml
Normal 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
21
ingress.yml
Normal 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
16
service.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user