Add second instance of poc application

This commit is contained in:
douzeb 2022-12-21 02:16:21 +01:00
parent 62e6391035
commit 3d916816a9
5 changed files with 55 additions and 0 deletions

View File

@ -17,6 +17,8 @@ spec:
elements:
- app: k8s-poc-demo
overlay: prod
- app: k8s-poc-demo
overlay: test
- app: argocd
overlay: prod
template:

View File

@ -0,0 +1,25 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: k8s-poc-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
#cert-manager.io/issuer: "letsencrypt-staging"
spec:
tls:
- hosts:
- test-k8s-poc.distrilab.org
secretName: k8s-poc-tls-secret
rules:
- host: test-k8s-poc.distrilab.org
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: k8s-poc-nginx-service
port:
number: 80

View File

@ -0,0 +1,7 @@
bases:
- ../base/
namePrefix: test-
patchesStrategicMerge:
- replicas.yaml
- resources.yaml
- ingress.yaml

View File

@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8s-poc-nginx-deployment
spec:
replicas: 1

View File

@ -0,0 +1,15 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8s-poc-nginx-deployment
spec:
template:
spec:
containers:
- name: k8s-poc-nginx
resources:
# requests:
# cpu: "100m"
limits:
memory: "256Mi"
cpu: "150m"