@@ -41,22 +41,22 @@ spec:
41
41
- swapoff -a
42
42
- mount -a
43
43
- |
44
- cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
44
+ cat <<EOF > /etc/modules-load.d/containerd.conf
45
45
overlay
46
46
br_netfilter
47
47
EOF
48
48
- modprobe overlay
49
49
- modprobe br_netfilter
50
50
- |
51
- cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf
51
+ cat <<EOF > /etc/sysctl.d/99-kubernetes-cri.conf
52
52
net.bridge.bridge-nf-call-iptables = 1
53
53
net.ipv4.ip_forward = 1
54
54
net.bridge.bridge-nf-call-ip6tables = 1
55
55
EOF
56
56
- sysctl --system
57
57
- apt-get -y update
58
58
- DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https curl
59
- - curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
59
+ - curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
60
60
- echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
61
61
- apt-get update -y
62
62
- TRIMMED_KUBERNETES_VERSION=$(echo ${KUBERNETES_VERSION} | sed 's/\./\\./g' | sed 's/^v//')
@@ -168,22 +168,22 @@ spec:
168
168
- swapoff -a
169
169
- mount -a
170
170
- |
171
- cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
171
+ cat <<EOF > /etc/modules-load.d/containerd.conf
172
172
overlay
173
173
br_netfilter
174
174
EOF
175
175
- modprobe overlay
176
176
- modprobe br_netfilter
177
177
- |
178
- cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf
178
+ cat <<EOF > /etc/sysctl.d/99-kubernetes-cri.conf
179
179
net.bridge.bridge-nf-call-iptables = 1
180
180
net.ipv4.ip_forward = 1
181
181
net.bridge.bridge-nf-call-ip6tables = 1
182
182
EOF
183
183
- sysctl --system
184
184
- apt-get -y update
185
185
- DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https curl
186
- - curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
186
+ - curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
187
187
- echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
188
188
- apt-get update -y
189
189
- TRIMMED_KUBERNETES_VERSION=$(echo ${KUBERNETES_VERSION} | sed 's/\./\\./g' | sed 's/^v//')
0 commit comments