Skip to content

Commit dc3a1c2

Browse files
committed
Update docs
1 parent fa739e1 commit dc3a1c2

File tree

18 files changed

+72
-17
lines changed

18 files changed

+72
-17
lines changed

docs/deployment/README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ShinyProxy operator on minikube.
4343
2. Start minikube:
4444

4545
```bash
46-
minikube start --addons=metrics-server,ingress
46+
minikube start --kubernetes-version='v1.21.6' --addons=metrics-server,ingress
4747
````
4848

4949
3. Clone this repository and change the working directory:
@@ -206,3 +206,24 @@ important:
206206
only needed when you change the namespace of an app using the
207207
`kubernetes-pod-patches` feature. The namespace of the operator and ShinyProxy
208208
instance are automatically included
209+
210+
## Troubleshooting
211+
212+
You may get the following exception:
213+
214+
```text
215+
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://10.96.0.1/apis/networking.k8s.io/v1beta1/namespaces/shinyproxy/ingresses. Message: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: host "shinyproxy-demo.local" and path "/" is already defined in ingress shinyproxy/ngingx-to-skipper-ingress. Received status: Status(apiVersion=v1, code=400, details=null, kind=Status, message=admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: host "shinyproxy-demo.local" and path "/" is already defined in ingress shinyproxy/ngingx-to-skipper-ingress, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=BadRequest, status=Failure, additionalProperties={}).
216+
```
217+
218+
This exception is caused by a
219+
[bug](https://github.com/kubernetes/ingress-nginx/issues/7546) in the latest
220+
(v1.0.0) version of the ingress-nginx controller. There are two workarounds for this bug:
221+
222+
- use a version of the ingress controller older than v1.0.0 (e.g. v0.49.2)
223+
- remove the validating webhook using, this is **not recommended** since it
224+
removes an important part of how the ingress controller works. However, it is
225+
an easy solution when you are following the above tutorial in minikube:
226+
227+
```bash
228+
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
229+
```

docs/deployment/overlays/1-namespaced-hpa/shinyproxy/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy
2123
logoUrl: ""
2224
landingPage: /
@@ -84,6 +86,6 @@ spec:
8486
successThreshold: 1
8587
failureThreshold: 6
8688
initialDelaySeconds: 60
87-
image: openanalytics/shinyproxy:2.5.0
89+
image: openanalytics/shinyproxy:2.6.0
8890
imagePullPolicy: Always
8991
fqdn: shinyproxy-demo.local

docs/deployment/overlays/2-namespaced-ds/shinyproxy/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy
2123
logoUrl: ""
2224
landingPage: /
@@ -84,6 +86,6 @@ spec:
8486
successThreshold: 1
8587
failureThreshold: 6
8688
initialDelaySeconds: 60
87-
image: openanalytics/shinyproxy:2.5.0
89+
image: openanalytics/shinyproxy:2.6.0
8890
imagePullPolicy: Always
8991
fqdn: shinyproxy-demo.local

docs/deployment/overlays/3-clustered-hpa/shinyproxy-1/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis.redis.svc
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy
2123
logoUrl: ""
2224
landingPage: /
@@ -84,6 +86,6 @@ spec:
8486
successThreshold: 1
8587
failureThreshold: 6
8688
initialDelaySeconds: 60
87-
image: openanalytics/shinyproxy:2.5.0
89+
image: openanalytics/shinyproxy:2.6.0
8890
imagePullPolicy: Always
8991
fqdn: shinyproxy-demo.local

docs/deployment/overlays/3-clustered-hpa/shinyproxy-2/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis.redis.svc
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy dept2
2123
logoUrl: ""
2224
landingPage: /
@@ -84,6 +86,6 @@ spec:
8486
successThreshold: 1
8587
failureThreshold: 6
8688
initialDelaySeconds: 60
87-
image: openanalytics/shinyproxy:2.5.0
89+
image: openanalytics/shinyproxy:2.6.0
8890
imagePullPolicy: Always
8991
fqdn: shinyproxy-demo2.local

docs/deployment/overlays/4-clustered-ds/shinyproxy-1/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis.redis.svc
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy
2123
logoUrl: ""
2224
landingPage: /
@@ -84,6 +86,6 @@ spec:
8486
successThreshold: 1
8587
failureThreshold: 6
8688
initialDelaySeconds: 60
87-
image: openanalytics/shinyproxy:2.5.0
89+
image: openanalytics/shinyproxy:2.6.0
8890
imagePullPolicy: Always
8991
fqdn: shinyproxy-demo.local

docs/deployment/overlays/4-clustered-ds/shinyproxy-2/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis.redis.svc
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy dept2
2123
logoUrl: ""
2224
landingPage: /
@@ -84,6 +86,6 @@ spec:
8486
successThreshold: 1
8587
failureThreshold: 6
8688
initialDelaySeconds: 60
87-
image: openanalytics/shinyproxy:2.5.0
89+
image: openanalytics/shinyproxy:2.6.0
8890
imagePullPolicy: Always
8991
fqdn: shinyproxy-demo2.local

docs/deployment/overlays/5-namespaced-hpa-app-ns/my-namespace/ns-role.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ roleRef:
2121
kind: Role
2222
name: shinyproxy-apps-role-my-ns
2323
apiGroup: rbac.authorization.k8s.io
24+
---
25+
kind: RoleBinding
26+
apiVersion: rbac.authorization.k8s.io/v1
27+
metadata:
28+
name: shinyproxy-operator-apps-rolebinding-my-ns
29+
namespace: my-namespace
30+
subjects:
31+
- kind: ServiceAccount
32+
name: shinyproxy-operator-sa
33+
namespace: shinyproxy
34+
roleRef:
35+
kind: Role
36+
name: shinyproxy-apps-role-my-ns
37+
apiGroup: rbac.authorization.k8s.io

docs/deployment/overlays/5-namespaced-hpa-app-ns/shinyproxy/shinyproxy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
host: redis
1818
password: ${REDIS_PASSWORD}
1919
proxy:
20+
operator:
21+
force-transfer: true
2022
title: ShinyProxy
2123
logoUrl: ""
2224
landingPage: /
@@ -88,7 +90,7 @@ spec:
8890
successThreshold: 1
8991
failureThreshold: 6
9092
initialDelaySeconds: 60
91-
image: openanalytics/shinyproxy:2.5.0
93+
image: openanalytics/shinyproxy:2.6.0
9294
imagePullPolicy: Always
9395
fqdn: shinyproxy-demo.local
9496
appNamespaces:

docs/deployment/overlays/6-namespaced-ds-multi/shinyproxy/shinyproxy1.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
host: redis
2020
password: ${REDIS_PASSWORD}
2121
proxy:
22+
operator:
23+
force-transfer: true
2224
title: ShinyProxy
2325
logoUrl: ""
2426
landingPage: /
@@ -86,6 +88,6 @@ spec:
8688
successThreshold: 1
8789
failureThreshold: 6
8890
initialDelaySeconds: 60
89-
image: openanalytics/shinyproxy:2.5.0
91+
image: openanalytics/shinyproxy:2.6.0
9092
imagePullPolicy: Always
9193
fqdn: shinyproxy-demo.local

0 commit comments

Comments
 (0)