diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kubernetes/ceph-helm.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/kubernetes/ceph-helm.sh b/tools/kubernetes/ceph-helm.sh index 0028423..010a5e8 100644 --- a/tools/kubernetes/ceph-helm.sh +++ b/tools/kubernetes/ceph-helm.sh @@ -49,12 +49,19 @@ function setup_ceph() { kubedns=$(kubectl get service -o json --namespace kube-system kube-dns | \ jq -r '.spec.clusterIP') + cat <<EOF | sudo tee -a /etc/resolv.conf +nameserver $kubedns +search ceph.svc.cluster.local svc.cluster.local cluster.local +EOF + for node in $nodes; do echo "${FUNCNAME[0]}: setup resolv.conf for $node" - cat <<EOF | sudo tee -a /etc/resolv.conf + ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no <<EOG +cat <<EOF | sudo tee -a /etc/resolv.conf nameserver $kubedns search ceph.svc.cluster.local svc.cluster.local cluster.local EOF +EOG echo "${FUNCNAME[0]}: Zap disk $dev at $node" ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ ubuntu@$node sudo ceph-disk zap /dev/$dev |