From b767d5abd62874023d19278929f876806161f424 Mon Sep 17 00:00:00 2001 From: Nilesh Jayanandana Date: Wed, 31 Mar 2021 12:33:54 +0530 Subject: [PATCH] Platformer YAML Bot App Sync 2021-03-31T07:03:50.973Z --- .../qa-azure/deployment-wso2-demo.yaml | 71 +++++++++++++++++++ .../horizontalpodautoscaler-wso2-demo.yaml | 24 +++++++ .../wso2-demo/qa-azure/ingress-wso2-ing.yaml | 38 ++++++++++ .../wso2-demo/qa-azure/service-wso2-demo.yaml | 32 +++++++++ 4 files changed, 165 insertions(+) create mode 100644 platformer/apps/wso2-demo/qa-azure/deployment-wso2-demo.yaml create mode 100644 platformer/apps/wso2-demo/qa-azure/horizontalpodautoscaler-wso2-demo.yaml create mode 100644 platformer/apps/wso2-demo/qa-azure/ingress-wso2-ing.yaml create mode 100644 platformer/apps/wso2-demo/qa-azure/service-wso2-demo.yaml diff --git a/platformer/apps/wso2-demo/qa-azure/deployment-wso2-demo.yaml b/platformer/apps/wso2-demo/qa-azure/deployment-wso2-demo.yaml new file mode 100644 index 0000000..e6cacf2 --- /dev/null +++ b/platformer/apps/wso2-demo/qa-azure/deployment-wso2-demo.yaml @@ -0,0 +1,71 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + labels: + app_environment_id: 7eff5871-1319-4f77-ae8b-a897e3f2d3c7 + env_id: f3f6c107-7d10-43f0-b820-f78fa7a30356 + env_name: qa-azure + organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9 + platformer_app_id: 86addb01-28ff-44aa-bf02-1b935a0b4e64 + platformer_app_name: wso2-demo + platformer_component: rudder + platformer_system: "true" + project_id: a028034f-c7bb-4df7-935e-8c5f62fea434 + name: wso2-demo + namespace: azure-test +spec: + replicas: 1 + selector: + matchLabels: + app_environment_id: 7eff5871-1319-4f77-ae8b-a897e3f2d3c7 + env_id: f3f6c107-7d10-43f0-b820-f78fa7a30356 + env_name: qa-azure + organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9 + platformer_app_id: 86addb01-28ff-44aa-bf02-1b935a0b4e64 + platformer_app_name: wso2-demo + platformer_component: rudder + platformer_system: "true" + project_id: a028034f-c7bb-4df7-935e-8c5f62fea434 + strategy: {} + template: + metadata: + annotations: + platformer.com/reload-hash: 38bad7da-6051-4c17-a25e-db8674e38163 + labels: + app_environment_id: 7eff5871-1319-4f77-ae8b-a897e3f2d3c7 + env_id: f3f6c107-7d10-43f0-b820-f78fa7a30356 + env_name: qa-azure + organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9 + platformer_app_id: 86addb01-28ff-44aa-bf02-1b935a0b4e64 + platformer_app_name: wso2-demo + platformer_component: rudder + platformer_system: "true" + project_id: a028034f-c7bb-4df7-935e-8c5f62fea434 + spec: + containers: + - image: ghcr.io/platformercloud/public-demo:master-b16c883e80605066b36f4513f979a04863863857 + imagePullPolicy: Always + name: wso2-demo + ports: + - containerPort: 8080 + name: port-8080 + protocol: TCP + resources: + requests: + cpu: 50m + memory: 128Mi + volumeMounts: + - mountPath: /test + name: 2952c908-9bae-4799-820e-4643d83bb994 + subPath: sa + imagePullSecrets: + - name: reg-jk-demo-3192360657 + restartPolicy: Always + terminationGracePeriodSeconds: 60 + volumes: + - configMap: + defaultMode: 420 + name: asdas-509730658 + name: 2952c908-9bae-4799-820e-4643d83bb994 diff --git a/platformer/apps/wso2-demo/qa-azure/horizontalpodautoscaler-wso2-demo.yaml b/platformer/apps/wso2-demo/qa-azure/horizontalpodautoscaler-wso2-demo.yaml new file mode 100644 index 0000000..dfff3fe --- /dev/null +++ b/platformer/apps/wso2-demo/qa-azure/horizontalpodautoscaler-wso2-demo.yaml @@ -0,0 +1,24 @@ +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + annotations: null + labels: + app_environment_id: 7eff5871-1319-4f77-ae8b-a897e3f2d3c7 + env_id: f3f6c107-7d10-43f0-b820-f78fa7a30356 + env_name: qa-azure + hpa_id: 93682f6b-15fe-4f03-bca8-3ab2b6853f57 + organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9 + platformer_app_id: 86addb01-28ff-44aa-bf02-1b935a0b4e64 + platformer_app_name: wso2-demo + platformer_component: rudder + platformer_system: "true" + project_id: a028034f-c7bb-4df7-935e-8c5f62fea434 + name: wso2-demo + namespace: azure-test +spec: + maxReplicas: 1 + minReplicas: 1 + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: wso2-demo diff --git a/platformer/apps/wso2-demo/qa-azure/ingress-wso2-ing.yaml b/platformer/apps/wso2-demo/qa-azure/ingress-wso2-ing.yaml new file mode 100644 index 0000000..bfc8659 --- /dev/null +++ b/platformer/apps/wso2-demo/qa-azure/ingress-wso2-ing.yaml @@ -0,0 +1,38 @@ +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + annotations: + acme.cert-manager.io/http01-edit-in-place: "true" + cert-manager.io/cluster-issuer: letsencrypt-prod + cert-manager.io/issue-temporary-certificate: "true" + certmanager.k8s.io/cluster-issuer: letsencrypt-prod + ingress.kubernetes.io/ssl-redirect: "true" + kubernetes.io/ingress.class: nginx + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/affinity: cookie + nginx.ingress.kubernetes.io/affinity-mode: balanced + nginx.ingress.kubernetes.io/backend-protocol: http + nginx.ingress.kubernetes.io/permanent-redirect-code: "301" + nginx.ingress.kubernetes.io/proxy-body-size: 500m + nginx.ingress.kubernetes.io/session-cookie-hash: sha1 + nginx.ingress.kubernetes.io/session-cookie-name: route + nginx.ingress.kubernetes.io/ssl-redirect: "true" + nginx.ingress.kubernetes.io/whitelist-source-range: 0.0.0.0/0 + platformer_ingress_id: 630f831b-01ec-487e-a409-ea8b2ee9e17f + labels: + platformer_ingress_id: 630f831b-01ec-487e-a409-ea8b2ee9e17f + name: wso2-ing + namespace: azure-test +spec: + rules: + - host: wso2-demo.azure-demo.platformer.cloud + http: + paths: + - backend: + serviceName: wso2-demo + servicePort: 8080 + path: / + tls: + - hosts: + - wso2-demo.azure-demo.platformer.cloud + secretName: wso2-ing-1617173856 diff --git a/platformer/apps/wso2-demo/qa-azure/service-wso2-demo.yaml b/platformer/apps/wso2-demo/qa-azure/service-wso2-demo.yaml new file mode 100644 index 0000000..2bd5bd3 --- /dev/null +++ b/platformer/apps/wso2-demo/qa-azure/service-wso2-demo.yaml @@ -0,0 +1,32 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: {} + labels: + app_environment_id: 7eff5871-1319-4f77-ae8b-a897e3f2d3c7 + env_id: f3f6c107-7d10-43f0-b820-f78fa7a30356 + env_name: qa-azure + organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9 + platformer_app_id: 86addb01-28ff-44aa-bf02-1b935a0b4e64 + platformer_app_name: wso2-demo + platformer_component: rudder + platformer_system: "true" + project_id: a028034f-c7bb-4df7-935e-8c5f62fea434 + name: wso2-demo + namespace: azure-test +spec: + ports: + - name: port-8080 + port: 8080 + targetPort: 8080 + selector: + app_environment_id: 7eff5871-1319-4f77-ae8b-a897e3f2d3c7 + env_id: f3f6c107-7d10-43f0-b820-f78fa7a30356 + env_name: qa-azure + organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9 + platformer_app_id: 86addb01-28ff-44aa-bf02-1b935a0b4e64 + platformer_app_name: wso2-demo + platformer_component: rudder + platformer_system: "true" + project_id: a028034f-c7bb-4df7-935e-8c5f62fea434 + type: ClusterIP