Last active
October 10, 2017 20:42
-
-
Save sub-mod/aac53ea92f7dcca45fc43ef9da84027a to your computer and use it in GitHub Desktop.
oshinko-template-sb.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": "v1", | |
"kind": "Template", | |
"template": "oshinko-webui-old", | |
"metadata": { | |
"name": "oshinko-webui-old", | |
"annotations": { | |
"openshift.io/display-name": "Oshinko-Webui", | |
"description": "", | |
"template.openshift.io/long-description": "", | |
"template.openshift.io/provider-display-name": "Red Hat, Inc.", | |
"template.openshift.io/documentation-url": "http://radanalytics.io", | |
"template.openshift.io/support-url": "https://access.redhat.com" | |
} | |
}, | |
"objects": [ | |
{ | |
"apiVersion": "v1", | |
"kind": "ServiceAccount", | |
"metadata": { | |
"name": "${OSHINKO_SA}" | |
} | |
}, | |
{ | |
"apiVersion": "v1", | |
"kind": "RoleBinding", | |
"metadata": { | |
"name": "oshinko-edit" | |
}, | |
"roleRef": { | |
"name": "edit" | |
}, | |
"subjects": [ | |
{ | |
"kind": "ServiceAccount", | |
"name": "${OSHINKO_SA}" | |
} | |
] | |
}, | |
{ | |
"kind": "Service", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "${OSHINKO_WEB_NAME}", | |
"labels": { | |
"name": "${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec": { | |
"ports": [ | |
{ | |
"name": "o-web-port", | |
"protocol": "TCP", | |
"port": 8080, | |
"targetPort": 8080 | |
} | |
], | |
"selector": { | |
"name": "${OSHINKO_WEB_NAME}" | |
} | |
} | |
}, | |
{ | |
"kind": "DeploymentConfig", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "${OSHINKO_DEPLOYMENT_NAME}" | |
}, | |
"spec": { | |
"strategy": { | |
"type": "Rolling" | |
}, | |
"triggers": [ | |
{ | |
"type": "ConfigChange" | |
} | |
], | |
"replicas": 1, | |
"selector": { | |
"name": "${OSHINKO_WEB_NAME}" | |
}, | |
"template": { | |
"metadata": { | |
"labels": { | |
"name": "${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "${OSHINKO_WEB_NAME}", | |
"image": "${OSHINKO_WEB_IMAGE}", | |
"ports": [ | |
{ | |
"name": "o-web-port", | |
"containerPort": 8080, | |
"protocol": "TCP" | |
} | |
], | |
"env": [ | |
{ | |
"name": "OSHINKO_SPARK_IMAGE", | |
"value": "${OSHINKO_CLUSTER_IMAGE}" | |
}, | |
{ | |
"name": "OSHINKO_REFRESH_INTERVAL", | |
"value": "${OSHINKO_REFRESH_INTERVAL}" | |
} | |
], | |
"readinessProbe": { | |
"failureThreshold": 3, | |
"httpGet": { | |
"path": "/", | |
"port": 8080, | |
"scheme": "HTTP" | |
}, | |
"periodSeconds": 10, | |
"successThreshold": 1, | |
"timeoutSeconds": 1 | |
}, | |
"livenessProbe": { | |
"failureThreshold": 3, | |
"httpGet": { | |
"path": "/", | |
"port": 8080, | |
"scheme": "HTTP" | |
}, | |
"periodSeconds": 10, | |
"successThreshold": 1, | |
"timeoutSeconds": 1 | |
} | |
} | |
], | |
"serviceAccount": "oshinko" | |
} | |
} | |
} | |
}, | |
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "${OSHINKO_WEB_NAME}" | |
}, | |
"spec": { | |
"host": "${OSHINKO_WEB_ROUTE_HOSTNAME}", | |
"to": { | |
"kind": "Service", | |
"name": "${OSHINKO_WEB_NAME}" | |
} | |
} | |
} | |
], | |
"parameters": [ | |
{ | |
"name": "OSHINKO_SA", | |
"description": "Service Account used for creating clusters", | |
"required": true, | |
"value": "oshinko" | |
}, | |
{ | |
"name": "OSHINKO_CLUSTER_IMAGE", | |
"description": "Full name of the spark image to use when creating clusters", | |
"required": true, | |
"value": "radanalyticsio/openshift-spark" | |
}, | |
{ | |
"name": "OSHINKO_WEB_NAME", | |
"description": "Name of the oshinko web service", | |
"value": "oshinko-web" | |
}, | |
{ | |
"name": "OSHINKO_WEB_IMAGE", | |
"description": "Full name of the oshinko web image", | |
"required": true, | |
"value": "radanalyticsio/oshinko-webui" | |
}, | |
{ | |
"name": "OSHINKO_WEB_ROUTE_HOSTNAME", | |
"description": "The hostname used to create the external route for the webui" | |
}, | |
{ | |
"name": "OSHINKO_DEPLOYMENT_NAME", | |
"description": "Name of the oshinko deployment", | |
"value": "oshinko" | |
}, | |
{ | |
"name": "OSHINKO_REFRESH_INTERVAL", | |
"value": "5", | |
"description": "Refresh interval for updating cluster list in seconds" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment