Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #321 from lpabon/template
Browse files Browse the repository at this point in the history
Update template
  • Loading branch information
Luis Pabón committed May 10, 2016
2 parents 57a90ce + 8cd3b15 commit 2c4316f
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 44 deletions.
9 changes: 8 additions & 1 deletion extras/openshift/template/README.md
Expand Up @@ -16,8 +16,15 @@ oc process --parameters heketi

* Deploy a Heketi service

Here is an example of how to deploy Heketi

```
oc process heketi -v NAME=myheketiservice | oc create -f -
oc process heketi -v NAME=myheketiservice \
HEKETI_KUBE_NAMESPACE=test \
HEKETI_KUBE_APIHOST='https://192.168.10.90:8443' \
HEKETI_KUBE_INSECURE=y \
HEKETI_KUBE_USER=test-admin \
HEKETI_KUBE_PASSWORD=admin | oc create -f -
```

* Note service
Expand Down
107 changes: 64 additions & 43 deletions extras/openshift/template/heketi.json
Expand Up @@ -34,19 +34,6 @@
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"annotations": {
"description": "Keeps track of changes in Heketi from Docker Hub"
}
},
"spec" : {
"dockerImageRepository" : "docker.io/heketi/heketi"
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
Expand All @@ -57,27 +44,6 @@
}
},
"spec": {
"strategy": {
"type": "Recreate"
},
"triggers": [
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"heketi"
],
"from": {
"kind": "ImageStreamTag",
"name": "${NAME}:latest"
}
}
},
{
"type": "ConfigChange"
}
],
"replicas": 1,
"selector": {
"name": "${NAME}"
Expand All @@ -90,19 +56,48 @@
}
},
"spec": {
"nodeSelector" : {
"name" : "worker-101"
},
"containers": [
{
"name": "heketi",
"image": "heketi",
"image": "heketi/heketi:dev",
"env": [
{
"name": "HEKETI_KUBE_CERTFILE",
"value": "${HEKETI_KUBE_CERTFILE}"
},
{
"name": "HEKETI_KUBE_INSECURE",
"value": "${HEKETI_KUBE_INSECURE}"
},
{
"name": "HEKETI_KUBE_USER",
"value": "${HEKETI_KUBE_USER}"
},
{
"name": "HEKETI_KUBE_PASSWORD",
"value": "${HEKETI_KUBE_PASSWORD}"
},
{
"name": "HEKETI_KUBE_NAMESPACE",
"value": "${HEKETI_KUBE_NAMESPACE}"
},
{
"name": "HEKETI_KUBE_APIHOST",
"value": "${HEKETI_KUBE_APIHOST}"
}
],
"ports": [
{
"containerPort": 8080
}
],
"volumeMounts" : [
"volumeMounts": [
{
"name" : "db",
"mountPath" : "/var/lib/heketi"
"name": "db",
"mountPath": "/var/lib/heketi"
}
],
"readinessProbe": {
Expand All @@ -123,9 +118,9 @@
}
}
],
"volumes" : [
"volumes": [
{
"name" : "db"
"name": "db"
}
]
}
Expand All @@ -134,13 +129,39 @@
}
],
"parameters": [
{
{
"name": "NAME",
"displayName": "Name",
"description": "The name assigned to all of the frontend objects defined in this template.",
"required": true,
"value": "heketi"
},
{
"name": "HEKETI_KUBE_CERTFILE",
"description": "SSL certificate file accessiable from the container"
},
{
"name": "HEKETI_KUBE_INSECURE",
"description": "Allow insecure SSL/HTTPS access",
"value": "n"
},
{
"name": "HEKETI_KUBE_USER",
"description": "OpenShift username to access Kubernetes API"
},
{
"name": "HEKETI_KUBE_PASSWORD",
"description": "Password for OpenShift user"
},
{
"name": "HEKETI_KUBE_NAMESPACE",
"description": "OpenShift project or Kubernetes namespace containing GlusterFS",
"required": true
},
{
"name": "HEKETI_KUBE_APIHOST",
"description": "Kubernetes API host",
"required": true
}
]
}

}

0 comments on commit 2c4316f

Please sign in to comment.