diff --git a/deploy/ccm-linode-template.yaml b/deploy/ccm-linode-template.yaml index 6d4c53ce..4f0048b1 100644 --- a/deploy/ccm-linode-template.yaml +++ b/deploy/ccm-linode-template.yaml @@ -23,6 +23,9 @@ rules: - apiGroups: [""] resources: ["endpoints"] verbs: ["get", "watch", "list", "update", "create"] +- apiGroups: ["coordination.k8s.io"] + resources: ["leases"] + verbs: ["get", "watch", "list", "update", "create"] - apiGroups: [""] resources: ["nodes"] verbs: ["get", "watch", "list", "update", "delete", "patch"] @@ -101,10 +104,10 @@ spec: imagePullPolicy: Always name: ccm-linode args: - - --leader-elect-resource-lock=endpoints + - --leader-elect-resource-lock=leases - --v=3 - - --port=0 - --secure-port=10253 + - --webhook-secure-port=0 volumeMounts: - mountPath: /etc/kubernetes name: k8s diff --git a/deploy/generate-manifest.sh b/deploy/generate-manifest.sh index 75994adc..d61ea290 100755 --- a/deploy/generate-manifest.sh +++ b/deploy/generate-manifest.sh @@ -4,6 +4,11 @@ set -o pipefail -o noclobber -o nounset die() { echo "$*" 1>&2; exit 1; } +echo -e "\n********************************************************************" +echo -e "WARNING: This script is deprecated and may be removed in future." +echo -e "Please use helm for installs, or refer to the docs for alternatives." +echo -e "********************************************************************\n" + [ "$#" -eq 2 ] || die "First argument must be a Linode APIv4 Personal Access Token with all permissions. (https://cloud.linode.com/profile/tokens)