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

Update deployment manifests for k8s 1.16+ #629

Open
wants to merge 4 commits 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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deploy/gk-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ 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 --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