Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platformer YAML Bot App Sync 2021-08-05T10:16:22.711Z #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
reloader.stakater.com/auto: "true"
labels:
app_environment_id: 8b2f90bd-c78e-4c3b-aaef-bfbc62ac1527
env_id: 837ba472-4c34-457a-847d-2983624e35e2
env_name: development
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
name: test-server
namespace: development
spec:
replicas: 2
selector:
matchLabels:
app_environment_id: 8b2f90bd-c78e-4c3b-aaef-bfbc62ac1527
env_id: 837ba472-4c34-457a-847d-2983624e35e2
env_name: development
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
strategy: {}
template:
metadata:
annotations:
platformer.com/reload-hash: 0e69b4ff-0eb5-4670-89da-7fdfbb197ff0
labels:
app_environment_id: 8b2f90bd-c78e-4c3b-aaef-bfbc62ac1527
env_id: 837ba472-4c34-457a-847d-2983624e35e2
env_name: development
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
spec:
containers:
- image: ghcr.io/platformercloud/public-demo:master-6ae61590e2372f387b3962eaa8c21f5a2ae0579c
imagePullPolicy: Always
name: test-server
ports:
- containerPort: 8080
name: port-8080
protocol: TCP
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 50m
memory: 128Mi
volumeMounts:
- mountPath: /app/config/config.json
name: 956de82f-4552-478a-a79e-f3495d45d247
subPath: config.json
imagePullSecrets:
- name: reg-test-server-3192360657
restartPolicy: Always
terminationGracePeriodSeconds: 60
volumes:
- configMap:
defaultMode: 420
name: config-js-2233202681
name: 956de82f-4552-478a-a79e-f3495d45d247
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
annotations: null
labels:
app_environment_id: 8b2f90bd-c78e-4c3b-aaef-bfbc62ac1527
env_id: 837ba472-4c34-457a-847d-2983624e35e2
env_name: development
hpa_id: 8aa3bb40-8d37-4b22-bf5e-76968c6233b0
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
name: test-server
namespace: development
spec:
maxReplicas: 1
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: test-server
38 changes: 38 additions & 0 deletions platformer/apps/test-server/development/ingress-dev-test.yaml
Original file line number Diff line number Diff line change
@@ -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: cd20eb06-6448-49e8-917e-94ecc2cd8da6
labels:
platformer_ingress_id: cd20eb06-6448-49e8-917e-94ecc2cd8da6
name: dev-test
namespace: development
spec:
rules:
- host: test.dev.platformer.com
http:
paths:
- backend:
serviceName: test-server
servicePort: 8080
path: /
tls:
- hosts:
- test.dev.platformer.com
secretName: dev-test-1628158380
32 changes: 32 additions & 0 deletions platformer/apps/test-server/development/service-test-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Service
metadata:
annotations: {}
labels:
app_environment_id: 8b2f90bd-c78e-4c3b-aaef-bfbc62ac1527
env_id: 837ba472-4c34-457a-847d-2983624e35e2
env_name: development
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
name: test-server
namespace: development
spec:
ports:
- name: port-8080
port: 8080
targetPort: 8080
selector:
app_environment_id: 8b2f90bd-c78e-4c3b-aaef-bfbc62ac1527
env_id: 837ba472-4c34-457a-847d-2983624e35e2
env_name: development
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
type: ClusterIP
65 changes: 65 additions & 0 deletions platformer/apps/test-server/test/deployment-test-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
reloader.stakater.com/auto: "true"
labels:
app_environment_id: 68f81e64-2f08-4eac-ae76-e3eebcc91151
env_id: 4554ca6e-2040-4f32-bc32-a4329da8de3a
env_name: test
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
name: test-server
namespace: test
spec:
replicas: 2
selector:
matchLabels:
app_environment_id: 68f81e64-2f08-4eac-ae76-e3eebcc91151
env_id: 4554ca6e-2040-4f32-bc32-a4329da8de3a
env_name: test
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
strategy: {}
template:
metadata:
annotations:
platformer.com/reload-hash: 4df935f6-68f8-46c0-9a4c-60164e9b8179
labels:
app_environment_id: 68f81e64-2f08-4eac-ae76-e3eebcc91151
env_id: 4554ca6e-2040-4f32-bc32-a4329da8de3a
env_name: test
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
spec:
containers:
- image: ghcr.io/platformercloud/public-demo:master-6ae61590e2372f387b3962eaa8c21f5a2ae0579c
imagePullPolicy: Always
name: test-server
ports:
- containerPort: 8080
name: port-8080
protocol: TCP
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 50m
memory: 128Mi
imagePullSecrets:
- name: reg-test-server-3192360657
restartPolicy: Always
terminationGracePeriodSeconds: 60
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
annotations: null
labels:
app_environment_id: 68f81e64-2f08-4eac-ae76-e3eebcc91151
env_id: 4554ca6e-2040-4f32-bc32-a4329da8de3a
env_name: test
hpa_id: b82665d7-9712-4999-b468-5d94f61d89e4
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
name: test-server
namespace: test
spec:
maxReplicas: 2
minReplicas: 2
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: test-server
32 changes: 32 additions & 0 deletions platformer/apps/test-server/test/service-test-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Service
metadata:
annotations: {}
labels:
app_environment_id: 68f81e64-2f08-4eac-ae76-e3eebcc91151
env_id: 4554ca6e-2040-4f32-bc32-a4329da8de3a
env_name: test
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
name: test-server
namespace: test
spec:
ports:
- name: port-8080
port: 8080
targetPort: 8080
selector:
app_environment_id: 68f81e64-2f08-4eac-ae76-e3eebcc91151
env_id: 4554ca6e-2040-4f32-bc32-a4329da8de3a
env_name: test
organization_id: de1ff33e-ae24-4890-9203-0c1b40f36be9
platformer_app_id: 26758534-f30b-4e7f-a106-c989b4dce916
platformer_app_name: test-server
platformer_component: rudder
platformer_system: "true"
project_id: ecd3b141-e623-4c94-b1f5-61fbb7e92540
type: ClusterIP