We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e4bf1 commit 75fd49bCopy full SHA for 75fd49b
scripts/kubectl/rollout-restart.sh
@@ -0,0 +1,18 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e -x
4
5
+namespace=prod
6
+kubeconfig=microk8s-local
7
8
+# Loop through script arguments
9
+while [[ $# -gt 0 ]]; do
10
+ case "$1" in
11
+ *)
12
+ other_args+=("$1")
13
+ shift
14
+ ;;
15
+ esac
16
+done
17
18
+kubectl --kubeconfig ~/.kube/$kubeconfig rollout restart deployments --namespace $namespace "${other_args[@]}"
scripts/release.sh
@@ -0,0 +1,12 @@
+set -x -e
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"
+cd "$DIR" || exit
+# Upgrade infrastructure with Helm
+sh ./scripts/helm/upgrade.sh
+# Restart deployments with kubectl
+sh ./scripts/kubectl/rollout-restart.sh
0 commit comments