@@ -70,6 +70,7 @@ onBeforeInstall: |
7070 count: k8smCount,
7171 cloudlets: 32,
7272 nodeType: "kubernetes",
73+ tag: "v1.14.2",
7374 nodeGroup: "k8sm",
7475 displayName: "Master",
7576 extip: false,
@@ -90,6 +91,7 @@ onBeforeInstall: |
9091 count: workerCount,
9192 nodeGroup: "cp",
9293 nodeType: "kubernetes",
94+ tag: "v1.14.2",
9395 displayName: "Workers",
9496 cloudlets: 32,
9597 extip: false,
@@ -170,6 +172,7 @@ onInstall:
170172 - connect-storage
171173 - deploy
172174 - install-conf-addon
175+ - remove-attr
173176
174177onAfterScaleOut[cp]:
175178 forEach(event.response.nodes):
@@ -302,6 +305,10 @@ actions:
302305 cmd[${nodes.k8sm.master.id}]: |-
303306 /usr/bin/kubectl drain ${this.workerHostname} --ignore-daemonsets --delete-local-data || exit 8;
304307 /usr/bin/kubectl delete node ${this.workerHostname} || exit 9;
308+
309+ remove-attr:
310+ cmd[*]: |-
311+ chattr -i -a /root/.bash_*
305312
306313 install-conf-addon:
307314 install:
@@ -347,7 +354,7 @@ actions:
347354 var image = resp.node.name;
348355 resp = jelastic.env.control.GetContainerNodeTags(envName, session, nodeId);
349356 if (resp.result != 0) return resp;
350- var tags = resp.object;
357+ var tags = resp.object;
351358 var updates = [];
352359 for (var i = 0; i < tags.length; i++) if (tags[i] > version) updates.push(tags[i]);
353360 var message = "Current version " + version + " is the latest. No updates are available.";
@@ -395,10 +402,12 @@ actions:
395402 update-masters:
396403 id: ${@node.id}
397404 master: false
405+ version: ${this.next}
398406 - forEach(node:nodes.cp):
399407 update-workers:
400408 id: ${@node.id}
401409 hostname: node${@node.id}-${env.domain}
410+ version: ${this.next}
402411 - script: |
403412 var message = "Kubernetes Cluster has been successfuly updated! **Current version:** ${this.next}. \n\nNo other updates are available.";
404413 if ("${this.avail}") message += "\n\n**Next version:** ${this.avail}. \nPress \"Update\" button to start the update process.";
0 commit comments