Last active
October 20, 2017 18:03
-
-
Save sub-mod/67b903ea1cdd059f8e6a2f41e6fdabf4 to your computer and use it in GitHub Desktop.
oshinko-webui-sc.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", | |
"labels": { | |
"template": "oshinko-webui-template" | |
}, | |
"message": "A Oshinko Webui service has been created in your project.", | |
"metadata":{ | |
"name":"oshinko-webui", | |
"annotations":{ | |
"openshift.io/display-name":"Oshinko-Webui", | |
"description":"Oshinko-Webui", | |
"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_WEB_NAME}-sa", | |
"labels":{ | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
} | |
}, | |
{ | |
"apiVersion":"v1", | |
"kind":"RoleBinding", | |
"metadata":{ | |
"name":"${OSHINKO_WEB_NAME}-oshinko-edit", | |
"labels":{ | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"roleRef":{ | |
"name":"edit" | |
}, | |
"subjects":[ | |
{ | |
"kind":"ServiceAccount", | |
"name":"${OSHINKO_WEB_NAME}-sa" | |
} | |
] | |
}, | |
{ | |
"apiVersion":"v1", | |
"kind":"Service", | |
"metadata":{ | |
"name":"${OSHINKO_WEB_NAME}-proxy", | |
"labels":{ | |
"name":"${OSHINKO_WEB_NAME}-proxy", | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec":{ | |
"ports":[ | |
{ | |
"name":"oc-proxy-port", | |
"port":8001, | |
"protocol":"TCP", | |
"targetPort":8001 | |
} | |
], | |
"selector":{ | |
"name":"${OSHINKO_WEB_NAME}" | |
} | |
} | |
}, | |
{ | |
"apiVersion":"v1", | |
"kind":"Service", | |
"metadata":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"labels":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec":{ | |
"ports":[ | |
{ | |
"name":"o-web-port", | |
"port":8080, | |
"protocol":"TCP", | |
"targetPort":8080 | |
} | |
], | |
"selector":{ | |
"name":"${OSHINKO_WEB_NAME}" | |
} | |
} | |
}, | |
{ | |
"apiVersion":"v1", | |
"kind":"DeploymentConfig", | |
"metadata":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"labels":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec":{ | |
"replicas":1, | |
"selector":{ | |
"name":"${OSHINKO_WEB_NAME}" | |
}, | |
"strategy":{ | |
"type":"Rolling" | |
}, | |
"template":{ | |
"metadata":{ | |
"labels":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec":{ | |
"containers":[ | |
{ | |
"env":[ | |
{ | |
"name":"SPARK_DEFAULT", | |
"value":"${SPARK_DEFAULT}" | |
}, | |
{ | |
"name":"OSHINKO_REFRESH_INTERVAL", | |
"value":"${OSHINKO_REFRESH_INTERVAL}" | |
}, | |
{ | |
"name":"WEB_ROUTE_NAME", | |
"value":"${OSHINKO_WEB_NAME}" | |
}, | |
{ | |
"name":"CURRENT_NAMESPACE", | |
"valueFrom":{ | |
"fieldRef":{ | |
"fieldPath":"metadata.namespace" | |
} | |
} | |
} | |
], | |
"image":"${OSHINKO_WEB_IMAGE}", | |
"imagePullPolicy":"IfNotPresent", | |
"livenessProbe":{ | |
"failureThreshold":3, | |
"httpGet":{ | |
"path":"/", | |
"port":8080, | |
"scheme":"HTTP" | |
}, | |
"initialDelaySeconds":20, | |
"periodSeconds":10, | |
"successThreshold":1, | |
"timeoutSeconds":1 | |
}, | |
"name":"${OSHINKO_WEB_NAME}", | |
"ports":[ | |
{ | |
"containerPort":8080, | |
"name":"o-web-port", | |
"protocol":"TCP" | |
} | |
], | |
"readinessProbe":{ | |
"failureThreshold":3, | |
"httpGet":{ | |
"path":"/", | |
"port":8080, | |
"scheme":"HTTP" | |
}, | |
"initialDelaySeconds":20, | |
"periodSeconds":10, | |
"successThreshold":1, | |
"timeoutSeconds":1 | |
} | |
}, | |
{ | |
"args":[ | |
"proxy", | |
"-p", | |
"8001", | |
"--address=0.0.0.0", | |
"--disable-filter=true", | |
"--api-prefix=/proxy" | |
], | |
"image":"radanalyticsio/oc-proxy:stable", | |
"imagePullPolicy":"IfNotPresent", | |
"name":"oc-proxy", | |
"ports":[ | |
{ | |
"containerPort":8001, | |
"name":"oc-proxy-port", | |
"protocol":"TCP" | |
} | |
], | |
"volumes":[ | |
{ | |
"emptyDir":{ | |
}, | |
"name":"test-volume" | |
} | |
] | |
} | |
], | |
"serviceAccount":"${OSHINKO_WEB_NAME}-sa" | |
} | |
}, | |
"triggers":[ | |
{ | |
"type":"ConfigChange" | |
} | |
] | |
} | |
}, | |
{ | |
"apiVersion":"v1", | |
"kind":"Route", | |
"metadata":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"labels":{ | |
"name":"${OSHINKO_WEB_NAME}", | |
"appName":"${OSHINKO_WEB_NAME}" | |
} | |
}, | |
"spec":{ | |
"alternateBackends":[ | |
{ | |
"kind":"Service", | |
"name":"${OSHINKO_WEB_NAME}" | |
} | |
], | |
"host":"${OSHINKO_WEB_ROUTE_HOSTNAME}", | |
"to":{ | |
"kind":"Service", | |
"name":"${OSHINKO_WEB_NAME}" | |
} | |
} | |
} | |
], | |
"parameters":[ | |
{ | |
"description":"Name of the Oshinko UI Application", | |
"displayName":"Application Name", | |
"name":"OSHINKO_WEB_NAME", | |
"value":"oshinko-web", | |
"required":true | |
}, | |
{ | |
"description":"Full name of the oshinko web image", | |
"displayName":"Oshinko UI Image", | |
"name":"OSHINKO_WEB_IMAGE", | |
"required":true, | |
"value":"radanalyticsio/oshinko-webui:stable" | |
}, | |
{ | |
"description":"Full name of the spark image to use when creating clusters", | |
"displayName":"User Defined Spark Image", | |
"name":"SPARK_DEFAULT", | |
"required":false | |
}, | |
{ | |
"description":"The hostname used to create the external route for the webui", | |
"displayName":"Route hostname", | |
"name":"OSHINKO_WEB_ROUTE_HOSTNAME", | |
"value":"", | |
"required":false | |
}, | |
{ | |
"description":"Refresh interval for updating cluster list in seconds", | |
"displayName":"UI Refresh Rate", | |
"name":"OSHINKO_REFRESH_INTERVAL", | |
"value":"5", | |
"required":false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment