forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helloworld sample update (istio#45355)
* update helloworld to use gunicorn; bind TCP6 by default but offer a fallback option if necessary; introduce dual stack manifest for helloworld on k8s Signed-off-by: ilrudie <ian.rudie@solo.io> * python lint fix Signed-off-by: ilrudie <ian.rudie@solo.io> * Adding curl to the image, the old image had it and was used by some folks as a client as a result Signed-off-by: ilrudie <ian.rudie@solo.io> * fixing Dockerfile lint issues Signed-off-by: ilrudie <ian.rudie@solo.io> --------- Signed-off-by: ilrudie <ian.rudie@solo.io>
- Loading branch information
Showing
4 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: helloworld | ||
labels: | ||
app: helloworld | ||
service: helloworld | ||
spec: | ||
ipFamilyPolicy: RequireDualStack | ||
ipFamilies: | ||
- IPv6 | ||
- IPv4 | ||
ports: | ||
- port: 5000 | ||
name: http | ||
selector: | ||
app: helloworld | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: helloworld-v1 | ||
labels: | ||
app: helloworld | ||
version: v1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: helloworld | ||
version: v1 | ||
template: | ||
metadata: | ||
labels: | ||
app: helloworld | ||
version: v1 | ||
spec: | ||
containers: | ||
- name: helloworld | ||
image: docker.io/istio/examples-helloworld-v1 | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
imagePullPolicy: IfNotPresent #Always | ||
ports: | ||
- containerPort: 5000 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: helloworld-v2 | ||
labels: | ||
app: helloworld | ||
version: v2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: helloworld | ||
version: v2 | ||
template: | ||
metadata: | ||
labels: | ||
app: helloworld | ||
version: v2 | ||
spec: | ||
containers: | ||
- name: helloworld | ||
image: docker.io/istio/examples-helloworld-v2 | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
imagePullPolicy: IfNotPresent #Always | ||
ports: | ||
- containerPort: 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ flask_bootstrap | |
json2html | ||
simplejson | ||
gevent | ||
gunicorn |