File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
roles/update_plotlyjs/tasks Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ - hosts : localhost
2
+ gather_facts : False
3
+ vars :
4
+ cluster : imageserver-stage
5
+ zone : us-central1-a
6
+ roles :
7
+ - common
8
+ - update_plotlyjs
Original file line number Diff line number Diff line change
1
+ # From https://github.com/kubernetes/kubernetes/issues/27081#issuecomment-238078103
2
+ # Change an unused variable in the deployment config, which will cause a
3
+ # rolling update that creates new pods. (New pods will automatically run the
4
+ # latest plotly.js since that's loaded on boot.)
5
+
6
+ - name : Show timestamp
7
+ local_action : command date +%s
8
+ register : date
9
+
10
+ - name : Update plotly.js by patching the deployment
11
+ local_action : command kubectl patch deployment imageserver --patch "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"RESTART_DATE\":\"{{ date.stdout }}\"}}}}}"
You can’t perform that action at this time.
0 commit comments