diff --git a/README.md b/README.md index 3bae6993..8d06b2fd 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ [![Build Status](https://travis-ci.org/gluster/gluster-kubernetes.svg?branch=master)](https://travis-ci.org/gluster/gluster-kubernetes) +## bert.persyn -> Changelog + +* fix ([issue 627](https://github.com/gluster/gluster-kubernetes/issues/627)): adjusted deploy/kube-templates so they work on k8s >= 1.16 + ## GlusterFS Native Storage Service for Kubernetes **gluster-kubernetes** is a project to provide Kubernetes administrators a diff --git a/deploy/gk-deploy b/deploy/gk-deploy index e3735e14..4309b92d 100755 --- a/deploy/gk-deploy +++ b/deploy/gk-deploy @@ -921,7 +921,7 @@ while [[ "x${heketi_service}" == "x" ]] || [[ "${heketi_service}" == "" ]] 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 --selector="heketi" | awk '{print $1}') if [[ "${CLI}" == *oc\ * ]]; then heketi_service=$(${CLI} describe routes/heketi | grep "Requested Host:" | awk '{print $3}') diff --git a/deploy/kube-templates/deploy-heketi-deployment.yaml b/deploy/kube-templates/deploy-heketi-deployment.yaml index 94f2cf7d..e8a7938b 100644 --- a/deploy/kube-templates/deploy-heketi-deployment.yaml +++ b/deploy/kube-templates/deploy-heketi-deployment.yaml @@ -17,7 +17,7 @@ spec: targetPort: 8080 --- kind: Deployment -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 metadata: name: deploy-heketi labels: @@ -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: diff --git a/deploy/kube-templates/gluster-s3-template.yaml b/deploy/kube-templates/gluster-s3-template.yaml index 60045bc1..5a391a9f 100644 --- a/deploy/kube-templates/gluster-s3-template.yaml +++ b/deploy/kube-templates/gluster-s3-template.yaml @@ -21,7 +21,7 @@ items: status: loadBalancer: {} - kind: Deployment - apiVersion: extensions/v1beta1 + apiVersion: apps/v1 metadata: name: gluster-s3-deployment labels: diff --git a/deploy/kube-templates/glusterfs-daemonset.yaml b/deploy/kube-templates/glusterfs-daemonset.yaml index c37a5f41..5f37d67a 100644 --- a/deploy/kube-templates/glusterfs-daemonset.yaml +++ b/deploy/kube-templates/glusterfs-daemonset.yaml @@ -1,6 +1,6 @@ --- kind: DaemonSet -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 metadata: name: glusterfs labels: @@ -9,6 +9,10 @@ metadata: description: GlusterFS DaemonSet tags: glusterfs spec: + selector: + matchLabels: + glusterfs: pod + glusterfs-node: pod template: metadata: name: glusterfs diff --git a/deploy/kube-templates/heketi-deployment.yaml b/deploy/kube-templates/heketi-deployment.yaml index ecc6cefa..f87cbb2e 100644 --- a/deploy/kube-templates/heketi-deployment.yaml +++ b/deploy/kube-templates/heketi-deployment.yaml @@ -17,7 +17,7 @@ spec: targetPort: 8080 --- kind: Deployment -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 metadata: name: heketi labels: @@ -26,6 +26,10 @@ metadata: annotations: description: Defines how to deploy Heketi spec: + selector: + matchLabels: + glusterfs: heketi-pod + heketi: pod replicas: 1 template: metadata: