mirror of
				https://github.com/kelseyhightower/kubernetes-the-hard-way.git
				synced 2025-11-04 02:02:33 +03:00 
			
		
		
		
	Remove cloud provider and move to ARM64
This commit is contained in:
		
							
								
								
									
										15
									
								
								configs/10-bridge.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								configs/10-bridge.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
{
 | 
			
		||||
  "cniVersion": "1.0.0",
 | 
			
		||||
  "name": "bridge",
 | 
			
		||||
  "type": "bridge",
 | 
			
		||||
  "bridge": "cni0",
 | 
			
		||||
  "isGateway": true,
 | 
			
		||||
  "ipMasq": true,
 | 
			
		||||
  "ipam": {
 | 
			
		||||
    "type": "host-local",
 | 
			
		||||
    "ranges": [
 | 
			
		||||
      [{"subnet": "SUBNET"}]
 | 
			
		||||
    ],
 | 
			
		||||
    "routes": [{"dst": "0.0.0.0/0"}]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								configs/99-loopback.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								configs/99-loopback.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "cniVersion": "1.1.0",
 | 
			
		||||
  "name": "lo",
 | 
			
		||||
  "type": "loopback"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								configs/containerd-config.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								configs/containerd-config.toml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
version = 2
 | 
			
		||||
 | 
			
		||||
[plugins."io.containerd.grpc.v1.cri"]
 | 
			
		||||
  [plugins."io.containerd.grpc.v1.cri".containerd]
 | 
			
		||||
    snapshotter = "overlayfs"
 | 
			
		||||
    default_runtime_name = "runc"
 | 
			
		||||
  [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
 | 
			
		||||
    runtime_type = "io.containerd.runc.v2"
 | 
			
		||||
  [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
 | 
			
		||||
    SystemdCgroup = true
 | 
			
		||||
[plugins."io.containerd.grpc.v1.cri".cni]
 | 
			
		||||
  bin_dir = "/opt/cni/bin"
 | 
			
		||||
  conf_dir = "/etc/cni/net.d"
 | 
			
		||||
							
								
								
									
										33
									
								
								configs/kube-apiserver-to-kubelet.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								configs/kube-apiserver-to-kubelet.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
apiVersion: rbac.authorization.k8s.io/v1
 | 
			
		||||
kind: ClusterRole
 | 
			
		||||
metadata:
 | 
			
		||||
  annotations:
 | 
			
		||||
    rbac.authorization.kubernetes.io/autoupdate: "true"
 | 
			
		||||
  labels:
 | 
			
		||||
    kubernetes.io/bootstrapping: rbac-defaults
 | 
			
		||||
  name: system:kube-apiserver-to-kubelet
 | 
			
		||||
rules:
 | 
			
		||||
  - apiGroups:
 | 
			
		||||
      - ""
 | 
			
		||||
    resources:
 | 
			
		||||
      - nodes/proxy
 | 
			
		||||
      - nodes/stats
 | 
			
		||||
      - nodes/log
 | 
			
		||||
      - nodes/spec
 | 
			
		||||
      - nodes/metrics
 | 
			
		||||
    verbs:
 | 
			
		||||
      - "*"
 | 
			
		||||
---
 | 
			
		||||
apiVersion: rbac.authorization.k8s.io/v1
 | 
			
		||||
kind: ClusterRoleBinding
 | 
			
		||||
metadata:
 | 
			
		||||
  name: system:kube-apiserver
 | 
			
		||||
  namespace: ""
 | 
			
		||||
roleRef:
 | 
			
		||||
  apiGroup: rbac.authorization.k8s.io
 | 
			
		||||
  kind: ClusterRole
 | 
			
		||||
  name: system:kube-apiserver-to-kubelet
 | 
			
		||||
subjects:
 | 
			
		||||
  - apiGroup: rbac.authorization.k8s.io
 | 
			
		||||
    kind: User
 | 
			
		||||
    name: kubernetes
 | 
			
		||||
							
								
								
									
										6
									
								
								configs/kube-proxy-config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								configs/kube-proxy-config.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
kind: KubeProxyConfiguration
 | 
			
		||||
apiVersion: kubeproxy.config.k8s.io/v1alpha1
 | 
			
		||||
clientConnection:
 | 
			
		||||
  kubeconfig: "/var/lib/kube-proxy/kubeconfig"
 | 
			
		||||
mode: "iptables"
 | 
			
		||||
clusterCIDR: "10.200.0.0/16"
 | 
			
		||||
							
								
								
									
										6
									
								
								configs/kube-scheduler.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								configs/kube-scheduler.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
apiVersion: kubescheduler.config.k8s.io/v1
 | 
			
		||||
kind: KubeSchedulerConfiguration
 | 
			
		||||
clientConnection:
 | 
			
		||||
  kubeconfig: "/var/lib/kubernetes/kube-scheduler.kubeconfig"
 | 
			
		||||
leaderElection:
 | 
			
		||||
  leaderElect: true
 | 
			
		||||
							
								
								
									
										21
									
								
								configs/kubelet-config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								configs/kubelet-config.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
kind: KubeletConfiguration
 | 
			
		||||
apiVersion: kubelet.config.k8s.io/v1beta1
 | 
			
		||||
authentication:
 | 
			
		||||
  anonymous:
 | 
			
		||||
    enabled: false
 | 
			
		||||
  webhook:
 | 
			
		||||
    enabled: true
 | 
			
		||||
  x509:
 | 
			
		||||
    clientCAFile: "/var/lib/kubelet/ca.crt"
 | 
			
		||||
authorization:
 | 
			
		||||
  mode: Webhook
 | 
			
		||||
clusterDomain: "cluster.local"
 | 
			
		||||
clusterDNS:
 | 
			
		||||
  - "10.32.0.10"
 | 
			
		||||
cgroupDriver: systemd
 | 
			
		||||
containerRuntimeEndpoint: "unix:///var/run/containerd/containerd.sock"
 | 
			
		||||
podCIDR: "SUBNET"
 | 
			
		||||
resolvConf: "/etc/resolv.conf"
 | 
			
		||||
runtimeRequestTimeout: "15m"
 | 
			
		||||
tlsCertFile: "/var/lib/kubelet/kubelet.crt"
 | 
			
		||||
tlsPrivateKeyFile: "/var/lib/kubelet/kubelet.key"
 | 
			
		||||
		Reference in New Issue
	
	Block a user