Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

for k8s version 1.17 #645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deploy/gk-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,8 @@ while [[ "x${heketi_service}" == "x" ]] || [[ "${heketi_service}" == "<none>" ]]
heketi_service=$(${CLI} describe svc/heketi | grep "Endpoints:" | awk '{print $2}')
done

heketi_pod=$(${CLI} get pod --no-headers --show-all --selector="heketi" | awk '{print $1}')
#heketi_pod=$(${CLI} get pod --no-headers --show-all --selector="heketi" | awk '{print $1}')
heketi_pod=$(${CLI} get pod --no-headers --selector="heketi" | awk '{print $1}')

if [[ "${CLI}" == *oc\ * ]]; then
heketi_service=$(${CLI} describe routes/heketi | grep "Requested Host:" | awk '{print $3}')
Expand Down
6 changes: 5 additions & 1 deletion deploy/kube-templates/deploy-heketi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
targetPort: 8080
---
kind: Deployment
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
name: deploy-heketi
labels:
Expand All @@ -26,6 +26,10 @@ metadata:
annotations:
description: Defines how to deploy Heketi
spec:
selector:
matchLabels:
glusterfs: heketi-pod
deploy-heketi: pod
replicas: 1
template:
metadata:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kube-templates/gluster-s3-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ items:
status:
loadBalancer: {}
- kind: Deployment
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
name: gluster-s3-deployment
labels:
Expand Down
6 changes: 5 additions & 1 deletion deploy/kube-templates/glusterfs-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
kind: DaemonSet
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
name: glusterfs
labels:
Expand All @@ -9,6 +9,10 @@ metadata:
description: GlusterFS DaemonSet
tags: glusterfs
spec:
selector:
matchLabels:
glusterfs: pod
glusterfs-node: pod
template:
metadata:
name: glusterfs
Expand Down
6 changes: 5 additions & 1 deletion deploy/kube-templates/heketi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
targetPort: 8080
---
kind: Deployment
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
name: heketi
labels:
Expand All @@ -26,6 +26,10 @@ metadata:
annotations:
description: Defines how to deploy Heketi
spec:
selector:
matchLabels:
glusterfs: heketi-pod
heketi: pod
replicas: 1
template:
metadata:
Expand Down