123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- {
- "kind": "Template",
- "apiVersion": "v1",
- "metadata": {
- "name": "bora_template",
- "creationTimestamp": null
- },
- "objects": [
- {
- "kind": "DeploymentConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APPLICATION_NAME}",
- "generation": 1,
- "creationTimestamp": null,
- "labels": {
- "app": "${APPLICATION_NAME}"
- },
- "annotations": {
- "openshift.io/generated-by": "OpenShiftWebConsole"
- }
- },
- "spec": {
- "strategy": {
- "type": "Rolling",
- "rollingParams": {
- "updatePeriodSeconds": 1,
- "intervalSeconds": 1,
- "timeoutSeconds": 600,
- "maxUnavailable": "25%",
- "maxSurge": "25%"
- },
- "resources": {},
- "activeDeadlineSeconds": 21600
- },
- "triggers": [
- {
- "type": "ImageChange",
- "imageChangeParams": {
- "automatic": true,
- "containerNames": [
- "${APPLICATION_NAME}"
- ],
- "from": {
- "kind": "ImageStreamTag",
- "namespace": "bora",
- "name": "${APPLICATION_NAME}:latest"
- }
- }
- },
- {
- "type": "ConfigChange"
- }
- ],
- "replicas": 1,
- "test": false,
- "selector": {
- "deploymentconfig": "${APPLICATION_NAME}"
- },
- "template": {
- "metadata": {
- "creationTimestamp": null,
- "labels": {
- "app": "${APPLICATION_NAME}",
- "deploymentconfig": "${APPLICATION_NAME}"
- }
- },
- "spec": {
- "containers": [
- {
- "name": "${APPLICATION_NAME}",
- "image": "docker-registry.default.svc:5000/bora/${APPLICATION_NAME}@sha256:dab618bd970fbb3556520f49006a4a0783619de02b0cf73f5aa2ce5012810e88",
- "ports": [
- {
- "containerPort": 8080,
- "protocol": "TCP"
- }
- ],
- "env": [
- {
- "name": "BORA_ADEI_SERVER",
- "value": "http://adei-katrin.kaas.kit.edu/adei/"
- },
- {
- "name": "BORA_POLLING",
- "value": "120"
- },
- {
- "name": "BORA_PORT",
- "value": "8080"
- },
- {
- "name": "BORA_TITLE",
- "value": "${APPLICATION_NAME}"
- },
- {
- "name": "BORA_ADEI_USERNAME",
- "value": "katrin"
- },
- {
- "name": "BORA_ADEI_PASSWORD",
- "value": "neutrino"
- }
- ],
- "resources": {},
- "terminationMessagePath": "/dev/termination-log",
- "terminationMessagePolicy": "File",
- "imagePullPolicy": "Always"
- }
- ],
- "restartPolicy": "Always",
- "terminationGracePeriodSeconds": 30,
- "dnsPolicy": "ClusterFirst",
- "securityContext": {},
- "schedulerName": "default-scheduler"
- }
- }
- },
- "status": {
- "latestVersion": 0,
- "observedGeneration": 0,
- "replicas": 0,
- "updatedReplicas": 0,
- "availableReplicas": 0,
- "unavailableReplicas": 0
- }
- },
- {
- "kind": "BuildConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APPLICATION_NAME}",
- "creationTimestamp": null,
- "labels": {
- "app": "${APPLICATION_NAME}"
- },
- "annotations": {
- "openshift.io/generated-by": "OpenShiftWebConsole"
- }
- },
- "spec": {
- "triggers": [
- {
- "type": "ImageChange",
- "imageChange": {}
- },
- {
- "type": "ConfigChange"
- },
- {
- "type": "Generic",
- "generic": {
- "secret": "${GENERIC_TRIGGER_SECRET}"
- }
- },
- {
- "type": "GitHub",
- "github": {
- "secret": "${GITHUB_TRIGGER_SECRET}"
- }
- }
- ],
- "runPolicy": "Serial",
- "source": {
- "type": "Git",
- "git": {
- "uri": "${SOURCE_REPOSITORY_URL}",
- "ref": "master"
- }
- },
- "strategy": {
- "type": "Source",
- "sourceStrategy": {
- "from": {
- "kind": "ImageStreamTag",
- "namespace": "openshift",
- "name": "python:2.7"
- }
- }
- },
- "output": {
- "to": {
- "kind": "ImageStreamTag",
- "name": "${APPLICATION_NAME}:latest"
- }
- },
- "resources": {},
- "postCommit": {},
- "nodeSelector": null
- },
- "status": {
- "lastVersion": 0
- }
- },
- {
- "kind": "ImageStream",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APPLICATION_NAME}",
- "generation": 1,
- "creationTimestamp": null,
- "labels": {
- "app": "${APPLICATION_NAME}"
- },
- "annotations": {
- "openshift.io/generated-by": "OpenShiftWebConsole"
- }
- },
- "spec": {
- "lookupPolicy": {
- "local": false
- },
- "tags": [
- {
- "name": "latest",
- "annotations": null,
- "from": {
- "kind": "DockerImage",
- "name": "docker-registry.default.svc:5000/bora/${APPLICATION_NAME}:latest"
- },
- "generation": null,
- "importPolicy": {},
- "referencePolicy": {
- "type": ""
- }
- }
- ]
- },
- "status": {
- "dockerImageRepository": ""
- }
- },
- {
- "kind": "Route",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APPLICATION_NAME}",
- "creationTimestamp": null,
- "labels": {
- "app": "${APPLICATION_NAME}"
- },
- "annotations": {
- "openshift.io/generated-by": "OpenShiftWebConsole",
- "openshift.io/host.generated": "true"
- }
- },
- "spec": {
- "host": "bora-${APPLICATION_NAME}.kaas.kit.edu",
- "to": {
- "kind": "Service",
- "name": "${APPLICATION_NAME}",
- "weight": 100
- },
- "port": {
- "targetPort": "8080-tcp"
- },
- "wildcardPolicy": "None"
- },
- "status": {
- "ingress": [
- {
- "host": "bora-${APPLICATION_NAME}.kaas.kit.edu",
- "routerName": "router",
- "conditions": [
- {
- "type": "Admitted",
- "status": "True",
- "lastTransitionTime": "2018-05-03T09:34:48Z"
- }
- ],
- "wildcardPolicy": "None"
- }
- ]
- }
- },
- {
- "kind": "Service",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APPLICATION_NAME}",
- "creationTimestamp": null,
- "labels": {
- "app": "${APPLICATION_NAME}"
- },
- "annotations": {
- "openshift.io/generated-by": "OpenShiftWebConsole"
- }
- },
- "spec": {
- "ports": [
- {
- "name": "8080-tcp",
- "protocol": "TCP",
- "port": 8080,
- "targetPort": 8080
- }
- ],
- "selector": {
- "deploymentconfig": "${APPLICATION_NAME}"
- },
- "type": "ClusterIP",
- "sessionAffinity": "None"
- },
- "status": {
- "loadBalancer": {}
- }
- },
- ],
- "parameters": [
- {
- "description": "The title of the BORA application",
- "name": "APPLICATION_NAME"
- },
- {
- "description": "The URL of the repository with your application source code.",
- "name": "SOURCE_REPOSITORY_URL"
- },
- {
- "description": "Github trigger secret",
- "name": "GITHUB_TRIGGER_SECRET",
- "from": "[a-zA-Z0-9]{8}",
- "generate": "expression"
- },
- {
- "description": "Generic trigger secret",
- "name": "GENERIC_TRIGGER_SECRET",
- "from": "[a-zA-Z0-9]{8}",
- "generate": "expression"
- }
- ]
- }
|