Add linode block storage
This commit is contained in:
parent
7cb826a8f1
commit
a314988c99
22 changed files with 602 additions and 2 deletions
20
files/linode/get-linode-id-ConfigMap.yaml
Normal file
20
files/linode/get-linode-id-ConfigMap.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# pkg/linode-bs/deploy/kubernetes/08-cm-get-linode-id.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: get-linode-id
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: csi-linode
|
||||
data:
|
||||
get-linode-id.sh: |-
|
||||
#!/bin/bash -efu
|
||||
id="$(kubectl get node/"${NODE_NAME}" -o jsonpath='{.spec.providerID}')"
|
||||
if [[ ! -z "${id}" ]]; then
|
||||
echo "${id}"
|
||||
echo -n "${id:9}" > /linode-info/linode-id
|
||||
exit 0
|
||||
fi
|
||||
echo "Provider ID not found"
|
||||
# Exit here so that we wait for the CCM to initialize the provider ID
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue