Skip to content

Commit

Permalink
Update echoserver image version in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed May 28, 2017
1 parent f00823f commit b84fc35
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 7 deletions.
20 changes: 19 additions & 1 deletion controllers/gce/examples/health_checks/health_check_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
spec:
containers:
- name: echoheaders
image: gcr.io/google_containers/echoserver:1.4
image: gcr.io/google_containers/echoserver:1.5
ports:
- containerPort: 8080
readinessProbe:
Expand All @@ -22,6 +22,24 @@ spec:
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP

---
apiVersion: v1
kind: Service
Expand Down
20 changes: 19 additions & 1 deletion controllers/gce/ingress-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,27 @@ spec:
spec:
containers:
- name: echoheaders
image: gcr.io/google_containers/echoserver:1.4
image: gcr.io/google_containers/echoserver:1.5
ports:
- containerPort: 8080
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP

---
# This is the Ingress resource that creates a HTTP Loadbalancer configured
# according to the Ingress rules.
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $ kubectl create -f examples/default/rc-default.yaml

First we need to deploy some application to publish. To keep this simple we will use the [echoheaders app](https://github.com/kubernetes/contrib/blob/master/ingress/echoheaders/echo-app.yaml) that just returns information about the http request as output
```
kubectl run echoheaders --image=gcr.io/google_containers/echoserver:1.4 --replicas=1 --port=8080
kubectl run echoheaders --image=gcr.io/google_containers/echoserver:1.5 --replicas=1 --port=8080
```

Now we expose the same application in two different services (so we can create different Ingress rules)
Expand Down
20 changes: 19 additions & 1 deletion examples/health-checks/gce/health_check_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
spec:
containers:
- name: echoheaders
image: gcr.io/google_containers/echoserver:1.4
image: gcr.io/google_containers/echoserver:1.5
ports:
- containerPort: 8080
readinessProbe:
Expand All @@ -22,6 +22,24 @@ spec:
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP

---
apiVersion: v1
kind: Service
Expand Down
20 changes: 18 additions & 2 deletions examples/http-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,23 @@ spec:
spec:
containers:
- name: http-svc
image: gcr.io/google_containers/echoserver:1.3
image: gcr.io/google_containers/echoserver:1.5
ports:
- containerPort: 8080

env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
20 changes: 19 additions & 1 deletion examples/multi-tls/nginx/multi-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,27 @@ spec:
spec:
containers:
- name: echoheaders
image: gcr.io/google_containers/echoserver:1.4
image: gcr.io/google_containers/echoserver:1.5
ports:
- containerPort: 8080
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP

---
apiVersion: extensions/v1beta1
kind: Ingress
Expand Down

0 comments on commit b84fc35

Please sign in to comment.