This is an automated email from the ASF dual-hosted git repository.
dgrove pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 118a1de Kubernetes 1.9, prepering volume for Redis UID/GID. (#202)
118a1de is described below
commit 118a1dec8f81b1f45675aff5da098dfac297a4aa
Author: Otávio Fernandes <[email protected]>
AuthorDate: Wed May 23 18:54:13 2018 +0200
Kubernetes 1.9, prepering volume for Redis UID/GID. (#202)
Changing Redis mount point to it's own UID/GID and mounting with readOnly
false.
---
kubernetes/apigateway/apigateway.yml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/kubernetes/apigateway/apigateway.yml
b/kubernetes/apigateway/apigateway.yml
index 4a4f5bf..b746759 100644
--- a/kubernetes/apigateway/apigateway.yml
+++ b/kubernetes/apigateway/apigateway.yml
@@ -49,12 +49,23 @@ spec:
values:
- apigateway
topologyKey: "kubernetes.io/hostname"
-
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: pv-apigateway-01
-
+ initContainers:
+ - name: redis-init
+ image: busybox
+ command:
+ - chown
+ - -v
+ - -R
+ - 999:999
+ - /data
+ volumeMounts:
+ - mountPath: /data
+ name: redis-data
+ readOnly: false
containers:
- name: redis
imagePullPolicy: IfNotPresent
@@ -62,6 +73,7 @@ spec:
volumeMounts:
- mountPath: /data
name: redis-data
+ readOnly: false
- name: apigateway
imagePullPolicy: Always
image: openwhisk/apigateway
--
To stop receiving notification emails like this one, please contact
[email protected].