diff --git a/templates/vsphere/cluster_template.yaml b/templates/vsphere/cluster_template.yaml index a5166b63..93ce0a2c 100644 --- a/templates/vsphere/cluster_template.yaml +++ b/templates/vsphere/cluster_template.yaml @@ -190,34 +190,6 @@ spec: owner: root:root path: /etc/kube-vip.hosts permissions: "0644" - - content: | - #!/bin/bash - - # Copyright 2020 The Kubernetes Authors. - # - # Licensed under the Apache License, Version 2.0 (the "License"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - - set -e - - # Configure the workaround required for kubeadm init with kube-vip: - # xref: https://github.com/kube-vip/kube-vip/issues/684 - - # Nothing to do for kubernetes < v1.29 - #sed -i 's#path: /etc/kubernetes/admin.conf#path: /etc/kubernetes/super-admin.conf#' \ - #/etc/kubernetes/manifests/kube-vip.yaml - owner: root:root - path: /etc/pre-kubeadm-commands/50-kube-vip-prepare.sh - permissions: "0700" preRunCommands: - hostnamectl set-hostname "{{ ds.meta_data.hostname }}" - echo "::1 ipv6-localhost ipv6-loopback localhost6 localhost6.localdomain6" @@ -258,9 +230,6 @@ spec: >/etc/hosts - echo "127.0.0.1 {{ ds.meta_data.hostname }} {{ local_hostname }} localhost localhost.localdomain localhost4 localhost4.localdomain4" >>/etc/hosts - - mkdir -p /etc/pre-kubeadm-commands - - for script in $(find /etc/pre-kubeadm-commands/ -name '*.sh' -type f | sort); - do echo "Running script $script"; "$script"; done --- apiVersion: cluster.x-k8s.io/v1beta1 kind: MachineDeployment