Skip to content

Commit

Permalink
Make httpbin samples work on OpenShift (istio#47922)
Browse files Browse the repository at this point in the history
* Make httpbin samples work on OpenShift

By using a non privileged port

* Update releasenotes/notes/make-httpbin-work-ocp.yaml

Co-authored-by: Daniel Hawton <daniel@hawton.org>

---------

Co-authored-by: Daniel Hawton <daniel@hawton.org>
  • Loading branch information
jwendell and dhawton authored Nov 20, 2023
1 parent 79fb01d commit 84ac8b9
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 8 deletions.
6 changes: 6 additions & 0 deletions releasenotes/notes/make-httpbin-work-ocp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: release-notes/v2
kind: bug-fix
area: documentation
releaseNotes:
- |
**Fixed** `httpbin` sample manifests to deploy correctly on OpenShift.
18 changes: 16 additions & 2 deletions samples/extauthz/local-ext-authz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,22 @@ spec:
- image: docker.io/kong/httpbin
imagePullPolicy: IfNotPresent
name: httpbin
# Same as found in Dockerfile's CMD but using an unprivileged port
command:
- pipenv
- run
- gunicorn
- -b
- 0.0.0.0:8080
- httpbin:app
- -k
- gevent
env:
# Tells pipenv to use a writable directory instead of $HOME
- name: WORKON_HOME
value: /tmp
ports:
- containerPort: 80
- containerPort: 8080
- image: gcr.io/istio-testing/ext-authz:latest
imagePullPolicy: IfNotPresent
name: ext-authz
Expand All @@ -88,7 +102,7 @@ spec:
ports:
- name: http
port: 8000
targetPort: 80
targetPort: 8080
selector:
app: httpbin
---
Expand Down
18 changes: 16 additions & 2 deletions samples/httpbin/httpbin-nodeport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
ports:
- name: http
port: 8000
targetPort: 80
targetPort: 8080
selector:
app: httpbin
---
Expand All @@ -51,5 +51,19 @@ spec:
- image: docker.io/kong/httpbin
imagePullPolicy: IfNotPresent
name: httpbin
# Same as found in Dockerfile's CMD but using an unprivileged port
command:
- pipenv
- run
- gunicorn
- -b
- 0.0.0.0:8080
- httpbin:app
- -k
- gevent
env:
# Tells pipenv to use a writable directory instead of $HOME
- name: WORKON_HOME
value: /tmp
ports:
- containerPort: 80
- containerPort: 8080
18 changes: 16 additions & 2 deletions samples/httpbin/httpbin-vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
ports:
- name: http
port: 8000
targetPort: 80
targetPort: 8080
selector:
app: httpbin
---
Expand All @@ -51,5 +51,19 @@ spec:
- image: docker.io/kong/httpbin
imagePullPolicy: IfNotPresent
name: httpbin
# Same as found in Dockerfile's CMD but using an unprivileged port
command:
- pipenv
- run
- gunicorn
- -b
- 0.0.0.0:8080
- httpbin:app
- -k
- gevent
env:
# Tells pipenv to use a writable directory instead of $HOME
- name: WORKON_HOME
value: /tmp
ports:
- containerPort: 80
- containerPort: 8080
18 changes: 16 additions & 2 deletions samples/httpbin/httpbin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
ports:
- name: http
port: 8000
targetPort: 80
targetPort: 8080
selector:
app: httpbin
---
Expand All @@ -56,5 +56,19 @@ spec:
- image: docker.io/kong/httpbin
imagePullPolicy: IfNotPresent
name: httpbin
# Same as found in Dockerfile's CMD but using an unprivileged port
command:
- pipenv
- run
- gunicorn
- -b
- 0.0.0.0:8080
- httpbin:app
- -k
- gevent
env:
# Tells pipenv to use a writable directory instead of $HOME
- name: WORKON_HOME
value: /tmp
ports:
- containerPort: 80
- containerPort: 8080

0 comments on commit 84ac8b9

Please sign in to comment.