From 16affb829cc68566f29dcadffe0b63d4cf3e32d7 Mon Sep 17 00:00:00 2001 From: Jason Perrin Date: Tue, 4 Jun 2019 00:54:37 -0700 Subject: [PATCH] Remove services already running on kubernetes --- apps/ocfweb/static/app.yaml | 77 ------------------- apps/ocfweb/web/app.yaml | 87 --------------------- apps/ocfweb/worker/app.yaml | 61 --------------- apps/slackbridge/app.yaml | 53 ------------- apps/sourcegraph/codeintel-python/app.yaml | 62 --------------- apps/sourcegraph/server/app.yaml | 88 ---------------------- 6 files changed, 428 deletions(-) delete mode 100644 apps/ocfweb/static/app.yaml delete mode 100644 apps/ocfweb/web/app.yaml delete mode 100644 apps/ocfweb/worker/app.yaml delete mode 100644 apps/slackbridge/app.yaml delete mode 100644 apps/sourcegraph/codeintel-python/app.yaml delete mode 100644 apps/sourcegraph/server/app.yaml diff --git a/apps/ocfweb/static/app.yaml b/apps/ocfweb/static/app.yaml deleted file mode 100644 index 7c89fa9..0000000 --- a/apps/ocfweb/static/app.yaml +++ /dev/null @@ -1,77 +0,0 @@ -{ - "id": "/ocfweb/static", - "cmd": null, - "cpus": 1, - "mem": 256, - "disk": 0, - "gpus": 0, - "instances": 3, - "executor": "", - "requirePorts": false, - "constraints": [ - # TODO: add another category for servers -- we don't actually need - # secrets, just don't want to land on a desktop - [ - "secrets", - "LIKE", - "true" - ], - ], - "container": { - "type": "DOCKER", - "volumes": [], - "docker": { - "image": "docker.ocf.berkeley.edu/ocfweb-static", - "privileged": false, - "parameters": [], - "forcePullImage": false - }, - "portMappings": [ - { - "containerPort": 8000, - "hostPort": 0, - "servicePort": 10004, - "protocol": "tcp", - "name": "main", - "labels": {} - } - ] - }, - "networks": [ - { - "mode": "container/bridge" - } - ], - "env": { - "OCFWEB_TESTING": "0" - }, - "healthChecks": [ - { - "path": "/js/site.js", - "protocol": "MESOS_HTTP", - "portIndex": 0, - "delaySeconds": 15, - "gracePeriodSeconds": 300, - "intervalSeconds": 60, - "timeoutSeconds": 20, - "maxConsecutiveFailures": 3, - "ipProtocol": "IPv4", - } - ], - "labels": { - "HAPROXY_GROUP": "lb" - }, - "maxLaunchDelaySeconds": 3600, - "backoffFactor": 1.15, - "backoffSeconds": 1, - "upgradeStrategy": { - "minimumHealthCapacity": 1, - "maximumOverCapacity": 1, - }, - "killSelection": 'YOUNGEST_FIRST', - "unreachableStrategy": { - "inactiveAfterSeconds": 300, - "expungeAfterSeconds": 600, - }, - "acceptedResourceRoles": ['*'], -} diff --git a/apps/ocfweb/web/app.yaml b/apps/ocfweb/web/app.yaml deleted file mode 100644 index e81ee98..0000000 --- a/apps/ocfweb/web/app.yaml +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "/ocfweb/web", - "cmd": null, - "cpus": 1, - "mem": 1024, - "disk": 0, - "gpus": 0, - "instances": 3, - "executor": "", - "requirePorts": false, - "constraints": [ - [ - "secrets", - "LIKE", - "true" - ], - ], - "container": { - "type": "DOCKER", - "volumes": [ - { - "containerPath": "/etc/ocfweb", - "hostPath": "/opt/share/docker/secrets/ocfweb", - "mode": "RO" - }, - { - "containerPath": "/etc/ocf", - "hostPath": "/etc/ocf", - "mode": "RO" - } - ], - "docker": { - "image": "docker.ocf.berkeley.edu/ocfweb-web", - "privileged": false, - "parameters": [], - "forcePullImage": false - }, - "portMappings": [ - { - "containerPort": 8000, - "hostPort": 0, - "servicePort": 10002, - "protocol": "tcp", - "name": "main", - "labels": {} - } - ] - }, - "networks": [ - { - "mode": "container/bridge" - } - ], - "env": { - "OCFWEB_TESTING": "0" - }, - "healthChecks": [ - { - "protocol": "COMMAND", - "command": { - "value": "curl -f -o /dev/null -H 'Host: www.ocf.berkeley.edu' http://$HOST:$PORT0/" - }, - "delaySeconds": 15, - "gracePeriodSeconds": 300, - "intervalSeconds": 60, - "timeoutSeconds": 20, - "maxConsecutiveFailures": 3, - "ipProtocol": "IPv4", - } - ], - "labels": { - "HAPROXY_GROUP": "lb" - }, - "maxLaunchDelaySeconds": 3600, - "backoffFactor": 1.15, - "backoffSeconds": 1, - "upgradeStrategy": { - "minimumHealthCapacity": 1, - "maximumOverCapacity": 1, - }, - "killSelection": 'YOUNGEST_FIRST', - "unreachableStrategy": { - "inactiveAfterSeconds": 300, - "expungeAfterSeconds": 600, - }, - "acceptedResourceRoles": ['*'], -} diff --git a/apps/ocfweb/worker/app.yaml b/apps/ocfweb/worker/app.yaml deleted file mode 100644 index 016a12e..0000000 --- a/apps/ocfweb/worker/app.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{ - "id": "/ocfweb/worker", - "cmd": null, - "cpus": 1, - "mem": 2048, - "gpus": 0, - "disk": 0, - "instances": 1, - "executor": "", - "requirePorts": false, - "constraints": [ - [ - "secrets", - "LIKE", - "true" - ], - ], - "container": { - "type": "DOCKER", - "volumes": [ - { - "containerPath": "/etc/ocfweb", - "hostPath": "/opt/share/docker/secrets/ocfweb", - "mode": "RO" - }, - { - "containerPath": "/etc/ocf", - "hostPath": "/etc/ocf", - "mode": "RO" - } - ], - "docker": { - "image": "docker.ocf.berkeley.edu/ocfweb-worker", - "privileged": false, - "parameters": [], - "forcePullImage": false - }, - "portMappings": [] - }, - "networks": [ - { - "mode": "container/bridge" - } - ], - "env": { - "OCFWEB_TESTING": "0" - }, - "maxLaunchDelaySeconds": 3600, - "backoffFactor": 1.15, - "backoffSeconds": 1, - "upgradeStrategy": { - "minimumHealthCapacity": 1, - "maximumOverCapacity": 1, - }, - "killSelection": 'YOUNGEST_FIRST', - "unreachableStrategy": { - "inactiveAfterSeconds": 300, - "expungeAfterSeconds": 600, - }, - "acceptedResourceRoles": ['*'], -} diff --git a/apps/slackbridge/app.yaml b/apps/slackbridge/app.yaml deleted file mode 100644 index ea29b47..0000000 --- a/apps/slackbridge/app.yaml +++ /dev/null @@ -1,53 +0,0 @@ -{ - "id": "/slackbridge", - "cmd": null, - "cpus": 1, - "mem": 512, - "disk": 0, - "gpus": 0, - "instances": 1, - "executor": "", - "requirePorts": false, - "constraints": [ - [ - "secrets", - "LIKE", - "true" - ], - ], - "acceptedResourceRoles": ['*'], - "container": { - "type": "DOCKER", - "volumes": [ - { - "containerPath": "/etc/ocf-slackbridge", - "hostPath": "/opt/share/docker/secrets/slackbridge", - "mode": "RO" - } - ], - "docker": { - "image": "docker.ocf.berkeley.edu/slackbridge", - "privileged": false, - "parameters": [], - "forcePullImage": false - }, - "portMappings": [] - }, - "networks": [ - { - "mode": "container/bridge" - } - ], - "maxLaunchDelaySeconds": 3600, - "backoffFactor": 1.15, - "backoffSeconds": 1, - "upgradeStrategy": { - "minimumHealthCapacity": 1, - "maximumOverCapacity": 1, - }, - "killSelection": 'YOUNGEST_FIRST', - "unreachableStrategy": { - "inactiveAfterSeconds": 300, - "expungeAfterSeconds": 600, - }, -} diff --git a/apps/sourcegraph/codeintel-python/app.yaml b/apps/sourcegraph/codeintel-python/app.yaml deleted file mode 100644 index c029b4a..0000000 --- a/apps/sourcegraph/codeintel-python/app.yaml +++ /dev/null @@ -1,62 +0,0 @@ -{ - "id": "/sourcegraph/codeintel-python", - "cmd": null, - "cpus": 1, - "mem": 512, - "disk": 0, - "gpus": 0, - "instances": 1, - "executor": "", - "requirePorts": false, - "acceptedResourceRoles": ['*'], - "container": { - "type": "DOCKER", - "docker": { - "image": "sourcegraph/codeintel-python:18892_2018-07-27_ddc9943", - "privileged": false, - "forcePullImage": false - }, - "portMappings": [ - { - "containerPort": 2087, - "hostPort": 0, - "servicePort": 10013, - "protocol": "tcp", - "name": "main", - "labels": {} - } - ] - }, - "networks": [ - { - "mode": "container/bridge" - } - ], - "healthChecks": [ - { - "protocol": "MESOS_TCP", - "portIndex": 0, - "delaySeconds": 15, - "gracePeriodSeconds": 300, - "intervalSeconds": 60, - "timeoutSeconds": 20, - "maxConsecutiveFailures": 3, - "ipProtocol": "IPv4", - } - ], - "labels": { - "HAPROXY_GROUP": "lb" - }, - "maxLaunchDelaySeconds": 3600, - "backoffFactor": 1.15, - "backoffSeconds": 1, - "upgradeStrategy": { - "minimumHealthCapacity": 1, - "maximumOverCapacity": 1, - }, - "killSelection": 'YOUNGEST_FIRST', - "unreachableStrategy": { - "inactiveAfterSeconds": 300, - "expungeAfterSeconds": 600, - }, -} diff --git a/apps/sourcegraph/server/app.yaml b/apps/sourcegraph/server/app.yaml deleted file mode 100644 index 47abd80..0000000 --- a/apps/sourcegraph/server/app.yaml +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "/sourcegraph/server", - "cmd": null, - "cpus": 2, - "mem": 2048, - "disk": 0, - "gpus": 0, - "instances": 1, - "executor": "", - "requirePorts": false, - "constraints": [ - [ - "secrets", - "LIKE", - "true" - ], - ], - "acceptedResourceRoles": ['*'], - "container": { - "type": "DOCKER", - "volumes": [ - { - "containerPath": "/etc/sourcegraph", - "hostPath": "/opt/share/docker/secrets/sourcegraph", - "mode": "RW" - }, - { - "containerPath": "/var/opt/sourcegraph", - "hostPath": "/opt/share/docker/sourcegraph", - "mode": "RW" - } - ], - "docker": { - "image": "sourcegraph/server:3.0.1", - "privileged": false, - "parameters": [ - { - "key": "env-file", - "value": "/opt/share/docker/secrets/sourcegraph/env-file" - } - ], - "forcePullImage": false - }, - "portMappings": [ - { - "containerPort": 7080, - "hostPort": 0, - "servicePort": 10012, - "protocol": "tcp", - "name": "main", - "labels": {} - } - ] - }, - "networks": [ - { - "mode": "container/bridge" - } - ], - "healthChecks": [ - { - "path": "/", - "protocol": "MESOS_HTTP", - "portIndex": 0, - "delaySeconds": 15, - "gracePeriodSeconds": 300, - "intervalSeconds": 60, - "timeoutSeconds": 20, - "maxConsecutiveFailures": 3, - "ipProtocol": "IPv4", - } - ], - "labels": { - "HAPROXY_GROUP": "lb" - }, - "maxLaunchDelaySeconds": 3600, - "backoffFactor": 1.15, - "backoffSeconds": 1, - "upgradeStrategy": { - "minimumHealthCapacity": 1, - "maximumOverCapacity": 1, - }, - "killSelection": 'YOUNGEST_FIRST', - "unreachableStrategy": { - "inactiveAfterSeconds": 300, - "expungeAfterSeconds": 600, - }, -}