Logo
Explore Get Started
x/k8s-docker-suite-app-murano
Code Issues Proposed changes
Files
5c680111b6e89e69436cfd92bbc22a7f5d679b6b
k8s-docker-suite-app-murano/Kubernetes/KubernetesCluster/package/Resources/scripts/patchService.sh

7 lines
107 B
Bash
Raw Normal View History

Added missing execution plan Execution plan to patch existing k8s services to include node IPs when number of nodes changed and we are not using gateways or we was using gateways and now we don't These 2 files were supposed to be in https://review.openstack.org/#/c/175506/ but I forgot to commit them Also fixes typo that is already fixed in stable/kilo Change-Id: I6af644511bf25ae7ae31c88914d33b8c518a4eec
2015-04-22 03:19:59 +03:00
#!/bin/bash
# $1 - service name
# $2 - publicIPs JSON
Fixing volume entry definitions * According to http://kubernetes.io/docs/user-guide/volumes/#types-of-volumes and https://github.com/kubernetes/kubernetes/commit/a1b53250118bbfd462d7441833964d379e08802f there is hostPath volume type instead of hostDir; And there is no 'source' keyword anymore. * Replacing 'kubectl update' on 'kubectl replace': kubectl update is deprecated, need to use 'replace': https://github.com/kubernetes/kubernetes/commit/9b3d42c090aeab663bf42e38658a5f88fb4b5272 Closes-Bug: #1604766 Change-Id: I1029caeb2827fc9de271b457c7a61b043d0189cb
2016-08-22 13:50:42 +03:00
/opt/bin/kubectl replace service "$1" --patch="$2"
Copy Permalink
Powered by Gitea Version: v1.24.6 Page: 52ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API