Add second instance of poc application
This commit is contained in:
parent
62e6391035
commit
3d916816a9
5 changed files with 55 additions and 0 deletions
|
@ -17,6 +17,8 @@ spec:
|
|||
elements:
|
||||
- app: k8s-poc-demo
|
||||
overlay: prod
|
||||
- app: k8s-poc-demo
|
||||
overlay: test
|
||||
- app: argocd
|
||||
overlay: prod
|
||||
template:
|
||||
|
|
25
deploy/k8s-poc-demo/test/ingress.yaml
Normal file
25
deploy/k8s-poc-demo/test/ingress.yaml
Normal 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
|
||||
|
7
deploy/k8s-poc-demo/test/kustomization.yaml
Normal file
7
deploy/k8s-poc-demo/test/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
bases:
|
||||
- ../base/
|
||||
namePrefix: test-
|
||||
patchesStrategicMerge:
|
||||
- replicas.yaml
|
||||
- resources.yaml
|
||||
- ingress.yaml
|
6
deploy/k8s-poc-demo/test/replicas.yaml
Normal file
6
deploy/k8s-poc-demo/test/replicas.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: k8s-poc-nginx-deployment
|
||||
spec:
|
||||
replicas: 1
|
15
deploy/k8s-poc-demo/test/resources.yaml
Normal file
15
deploy/k8s-poc-demo/test/resources.yaml
Normal 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"
|
Loading…
Reference in a new issue