Skip to content

Commit

Permalink
cleanup leftover kubeadm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Jul 12, 2024
1 parent 55a6dcd commit 026df59
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions templates/vsphere/cluster_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 026df59

Please sign in to comment.