Last active
September 29, 2016 18:44
-
-
Save sub-mod/725b96c80e736f5f799ca296c9fab95d to your computer and use it in GitHub Desktop.
This file contains 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
kind: Template | |
apiVersion: v1 | |
template: oshinko | |
metadata: | |
name: oshinko | |
objects: | |
- kind: Service | |
apiVersion: v1 | |
metadata: | |
name: ${OSHINKO_SERVER_NAME} | |
labels: | |
name: ${OSHINKO_SERVER_NAME} | |
spec: | |
ports: | |
- name: o-rest-port | |
protocol: TCP | |
port: 8081 | |
targetPort: 8081 | |
selector: | |
name: ${OSHINKO_SERVER_NAME} | |
- kind: Service | |
apiVersion: v1 | |
metadata: | |
name: ${OSHINKO_WEB_NAME} | |
annotations: | |
service.alpha.openshift.io/dependencies: '[{"name":"${OSHINKO_SERVER_NAME}","namespace":"","kind":"Service"}]' | |
labels: | |
name: ${OSHINKO_WEB_NAME} | |
restname: ${OSHINKO_SERVER_NAME} | |
spec: | |
ports: | |
- name: o-web-port | |
protocol: TCP | |
port: 8080 | |
targetPort: 8080 | |
selector: | |
name: ${OSHINKO_SERVER_NAME} | |
- kind: DeploymentConfig | |
apiVersion: v1 | |
metadata: | |
name: ${OSHINKO_DEPLOYMENT_NAME} | |
spec: | |
strategy: | |
type: Rolling | |
triggers: | |
- type: ConfigChange | |
replicas: 1 | |
selector: | |
name: ${OSHINKO_SERVER_NAME} | |
template: | |
metadata: | |
labels: | |
name: ${OSHINKO_SERVER_NAME} | |
spec: | |
containers: | |
- name: ${OSHINKO_SERVER_NAME} | |
image: ${OSHINKO_SERVER_IMAGE} | |
env: | |
- name: OSHINKO_SERVER_PORT | |
value: "8081" | |
- name: OSHINKO_REST_POD_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.name | |
- name: OSHINKO_CLUSTER_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
- name: OSHINKO_CLUSTER_IMAGE | |
value: ${OSHINKO_CLUSTER_IMAGE} | |
- name: OSHINKO_WEB_NAME | |
value: ${OSHINKO_WEB_NAME} | |
ports: | |
- name: o-rest-port | |
containerPort: 8081 | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: / | |
port: 8081 | |
scheme: HTTP | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: / | |
port: 8081 | |
scheme: HTTP | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
- name: ${OSHINKO_WEB_NAME} | |
image: ${OSHINKO_WEB_IMAGE} | |
env: | |
- name: OPENSHIFT_OSHINKO_REST | |
value: 127.0.0.1 | |
- name: OPENSHIFT_OSHINKO_REST_PORT | |
value: "8081" | |
ports: | |
- name: o-web-port | |
containerPort: 8080 | |
protocol: TCP | |
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_SERVER_IMAGE | |
description: Full name of the oshinko server image | |
required: true | |
value: 172.30.78.105:5000/submod/oshinko-rest | |
- name: OSHINKO_SERVER_NAME | |
description: Name of the oshinko server service | |
value: "oshinko-rest" | |
- 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 oshino 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" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment