This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ubuntu-deployment | |
labels: | |
app: ubuntu | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /etc/crictl.yaml | |
runtime-endpoint: "unix:///run/containerd/containerd.sock" | |
image-endpoint: "unix:///run/containerd/containerd.sock" | |
timeout: 10 | |
debug: false | |
pull-image-on-create: false | |
disable-pull-on-run: false | |
// /etc/containerd/config.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf /var/run/openvswitch | |
rm -rf /var/run/ovn | |
rm -rf /etc/origin/openvswitch/ | |
rm -rf /etc/origin/ovn/ | |
rm -rf /etc/cni/net.d/00-kube-ovn.conflist | |
rm -rf /etc/cni/net.d/01-kube-ovn.conflist | |
rm -rf /var/log/openvswitch | |
rm -rf /var/log/ovn | |
rm -rf /etc/cni/net.d | |
rm -rf ~/.kube/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y yum-utils ntpdate | |
yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
yum install -y docker-ce docker-ce-cli containerd.io | |
systemctl enable docker | |
systemctl start docker | |
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo | |
[kubernetes] |