This repository has been archived by the owner on Jul 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resurrect the deploy-heketi deployment scheme.
Heketi upstream has now disabled the backup of its DB to kubernetes secret by default (due to the size limit). This lets gk-deploy revert back to the deploy-heketi scheme which uses a temporary boot-strapping heketi instance to create a gluster volume to which heketi's database is then copied. This reverts commit 82c35a5. ("Support for heketi 4 Release changes") Pair-Programmed-With: Mohamed Ashiq Liyazudeen <[email protected]> Signed-off-by: Michael Adam <[email protected]>
- Loading branch information
Showing
5 changed files
with
243 additions
and
37 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
glusterfs: heketi-service | ||
deploy-heketi: support | ||
annotations: | ||
description: Exposes Heketi Service | ||
spec: | ||
selector: | ||
name: deploy-heketi | ||
ports: | ||
- name: deploy-heketi | ||
port: 8080 | ||
targetPort: 8080 | ||
--- | ||
kind: Deployment | ||
apiVersion: extensions/v1beta1 | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
glusterfs: heketi-deployment | ||
deploy-heketi: heketi-deployment | ||
annotations: | ||
description: Defines how to deploy Heketi | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
name: deploy-heketi | ||
glusterfs: heketi-pod | ||
spec: | ||
serviceAccountName: heketi-service-account | ||
containers: | ||
- image: heketi/heketi:dev | ||
imagePullPolicy: IfNotPresent | ||
name: deploy-heketi | ||
env: | ||
- name: HEKETI_EXECUTOR | ||
value: kubernetes | ||
- name: HEKETI_FSTAB | ||
value: "/var/lib/heketi/fstab" | ||
- name: HEKETI_SNAPSHOT_LIMIT | ||
value: '14' | ||
- name: HEKETI_KUBE_GLUSTER_DAEMONSET | ||
value: "y" | ||
ports: | ||
- containerPort: 8080 | ||
volumeMounts: | ||
- name: db | ||
mountPath: "/var/lib/heketi" | ||
readinessProbe: | ||
timeoutSeconds: 3 | ||
initialDelaySeconds: 3 | ||
httpGet: | ||
path: "/hello" | ||
port: 8080 | ||
livenessProbe: | ||
timeoutSeconds: 3 | ||
initialDelaySeconds: 30 | ||
httpGet: | ||
path: "/hello" | ||
port: 8080 | ||
volumes: | ||
- name: db |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
kind: Template | ||
apiVersion: v1 | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
glusterfs: heketi-template | ||
deploy-heketi: support | ||
annotations: | ||
description: Bootstrap Heketi installation | ||
tags: glusterfs,heketi,installation | ||
labels: | ||
template: deploy-heketi | ||
objects: | ||
- kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
glusterfs: heketi-service | ||
deploy-heketi: support | ||
annotations: | ||
description: Exposes Heketi service | ||
spec: | ||
ports: | ||
- name: deploy-heketi | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
name: deploy-heketi | ||
- kind: Route | ||
apiVersion: v1 | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
glusterfs: heketi-route | ||
deploy-heketi: support | ||
spec: | ||
to: | ||
kind: Service | ||
name: deploy-heketi | ||
- kind: DeploymentConfig | ||
apiVersion: v1 | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
glusterfs: heketi-dc | ||
deploy-heketi: support | ||
annotations: | ||
description: Defines how to deploy Heketi | ||
spec: | ||
replicas: 1 | ||
selector: | ||
name: deploy-heketi | ||
triggers: | ||
- type: ConfigChange | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
name: deploy-heketi | ||
labels: | ||
name: deploy-heketi | ||
glusterfs: heketi-pod | ||
deploy-heketi: support | ||
spec: | ||
serviceAccountName: heketi-service-account | ||
containers: | ||
- name: deploy-heketi | ||
image: heketi/heketi:dev | ||
env: | ||
- name: HEKETI_USER_KEY | ||
value: ${HEKETI_USER_KEY} | ||
- name: HEKETI_ADMIN_KEY | ||
value: ${HEKETI_ADMIN_KEY} | ||
- name: HEKETI_EXECUTOR | ||
value: kubernetes | ||
- name: HEKETI_FSTAB | ||
value: /var/lib/heketi/fstab | ||
- name: HEKETI_SNAPSHOT_LIMIT | ||
value: '14' | ||
- name: HEKETI_KUBE_GLUSTER_DAEMONSET | ||
value: "y" | ||
ports: | ||
- containerPort: 8080 | ||
volumeMounts: | ||
- name: db | ||
mountPath: /var/lib/heketi | ||
readinessProbe: | ||
timeoutSeconds: 3 | ||
initialDelaySeconds: 3 | ||
httpGet: | ||
path: /hello | ||
port: 8080 | ||
livenessProbe: | ||
timeoutSeconds: 3 | ||
initialDelaySeconds: 30 | ||
httpGet: | ||
path: /hello | ||
port: 8080 | ||
volumes: | ||
- name: db | ||
parameters: | ||
- name: HEKETI_USER_KEY | ||
displayName: Heketi User Secret | ||
description: Set secret for those creating volumes as type _user_ | ||
- name: HEKETI_ADMIN_KEY | ||
displayName: Heketi Administrator Secret | ||
description: Set secret for administration of the Heketi service as user _admin_ |
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