diff --git a/deploy/applicationset.yaml b/deploy/applicationset.yaml index 03beb4c..eb43ac6 100644 --- a/deploy/applicationset.yaml +++ b/deploy/applicationset.yaml @@ -17,6 +17,8 @@ spec: elements: - app: k8s-poc-demo overlay: prod + - app: k8s-poc-demo + overlay: test - app: argocd overlay: prod template: diff --git a/deploy/k8s-poc-demo/test/ingress.yaml b/deploy/k8s-poc-demo/test/ingress.yaml new file mode 100644 index 0000000..fc63090 --- /dev/null +++ b/deploy/k8s-poc-demo/test/ingress.yaml @@ -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 + diff --git a/deploy/k8s-poc-demo/test/kustomization.yaml b/deploy/k8s-poc-demo/test/kustomization.yaml new file mode 100644 index 0000000..15c5db8 --- /dev/null +++ b/deploy/k8s-poc-demo/test/kustomization.yaml @@ -0,0 +1,7 @@ +bases: +- ../base/ +namePrefix: test- +patchesStrategicMerge: +- replicas.yaml +- resources.yaml +- ingress.yaml diff --git a/deploy/k8s-poc-demo/test/replicas.yaml b/deploy/k8s-poc-demo/test/replicas.yaml new file mode 100644 index 0000000..46b8975 --- /dev/null +++ b/deploy/k8s-poc-demo/test/replicas.yaml @@ -0,0 +1,6 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: k8s-poc-nginx-deployment +spec: + replicas: 1 diff --git a/deploy/k8s-poc-demo/test/resources.yaml b/deploy/k8s-poc-demo/test/resources.yaml new file mode 100644 index 0000000..edad572 --- /dev/null +++ b/deploy/k8s-poc-demo/test/resources.yaml @@ -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"