Skip to content

Commit

Permalink
blue-green updates due to unpredictable rotue name
Browse files Browse the repository at this point in the history
  • Loading branch information
mchmarny committed Mar 11, 2019
1 parent 97abf23 commit f5c1f49
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions blue-green-deploy/README.md
Expand Up @@ -90,6 +90,7 @@ To delete the demo app, enter the following commands:
```
kubectl delete -f stage4.yaml --ignore-not-found=true
kubectl delete -f stage3.yaml --ignore-not-found=true
kubectl delete -f stage2-routes.yaml --ignore-not-found=true
kubectl delete -f stage2.yaml --ignore-not-found=true
kubectl delete -f stage1.yaml --ignore-not-found=true
```
1 change: 0 additions & 1 deletion blue-green-deploy/stage1.yaml
Expand Up @@ -10,7 +10,6 @@ spec:
spec:
container:
image: gcr.io/knative-samples/knative-route-demo:blue
imagePullPolicy: Always
env:
- name: T_VERSION
value: "blue"
1 change: 0 additions & 1 deletion blue-green-deploy/stage2.yaml
Expand Up @@ -11,7 +11,6 @@ spec:
spec:
container:
image: gcr.io/knative-samples/knative-route-demo:green # URL to the new version of the sample app docker image
imagePullPolicy: Always
env:
- name: T_VERSION
value: "green" # Updated value for the T_VERSION environment variable
6 changes: 3 additions & 3 deletions go.mod
@@ -1,8 +1,8 @@
module github.com/mchmarny/knative-demos

require (
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/eclipse/paho.mqtt.golang v1.1.1 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/eclipse/paho.mqtt.golang v1.1.1
github.com/satori/go.uuid v1.2.0
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 // indirect
)
5 changes: 4 additions & 1 deletion iot-events/service.yaml
Expand Up @@ -4,11 +4,14 @@ metadata:
name: iot-message-dumper
namespace: demo
labels:
serving.knative.dev/visibility: cluster-local # note use of cluster-local label
# serving.knative.dev/visibility: cluster-local # note use of cluster-local label
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/message_dumper@sha256:73a95b05b5b937544af7c514c3116479fa5b6acf7771604b313cfc1587bf0940
env:
- name: RELEASE
value: "v0.1.1"
3 changes: 2 additions & 1 deletion iot-events/source.yaml
Expand Up @@ -12,4 +12,5 @@ spec:
sink:
apiVersion: eventing.knative.dev/v1alpha1
kind: Channel
name: iot-demo
name: iot-demo
namespace: demo
3 changes: 1 addition & 2 deletions simple/app.yaml
Expand Up @@ -9,8 +9,7 @@ spec:
revisionTemplate:
spec:
container:
image: gcr.io/knative-samples/simple-app:latest
imagePullPolicy: Always
image: gcr.io/knative-samples/rester-tester:latest
env:
- name: SIMPLE_MSG
value: "Hello World"

0 comments on commit f5c1f49

Please sign in to comment.