-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9708 from prezha/fix-kubernetes-version
hack update: generate unit tests for new k8rs version
- Loading branch information
Showing
13 changed files
with
805 additions
and
81 deletions.
There are no files selected for viewing
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
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
67 changes: 67 additions & 0 deletions
67
hack/update/kubernetes_version/templates/v1beta2/containerd-api-port.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: InitConfiguration | ||
localAPIEndpoint: | ||
advertiseAddress: 1.1.1.1 | ||
bindPort: 12345 | ||
bootstrapTokens: | ||
- groups: | ||
- system:bootstrappers:kubeadm:default-node-token | ||
ttl: 24h0m0s | ||
usages: | ||
- signing | ||
- authentication | ||
nodeRegistration: | ||
criSocket: /run/containerd/containerd.sock | ||
name: "mk" | ||
kubeletExtraArgs: | ||
node-ip: 1.1.1.1 | ||
taints: [] | ||
--- | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: ClusterConfiguration | ||
apiServer: | ||
certSANs: ["127.0.0.1", "localhost", "1.1.1.1"] | ||
extraArgs: | ||
enable-admission-plugins: "NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" | ||
controllerManager: | ||
extraArgs: | ||
leader-elect: "false" | ||
scheduler: | ||
extraArgs: | ||
leader-elect: "false" | ||
certificatesDir: /var/lib/minikube/certs | ||
clusterName: mk | ||
controlPlaneEndpoint: control-plane.minikube.internal:12345 | ||
dns: | ||
type: CoreDNS | ||
etcd: | ||
local: | ||
dataDir: /var/lib/minikube/etcd | ||
extraArgs: | ||
proxy-refresh-interval: "70000" | ||
kubernetesVersion: v1.19.0 | ||
networking: | ||
dnsDomain: cluster.local | ||
podSubnet: "10.244.0.0/16" | ||
serviceSubnet: 10.96.0.0/12 | ||
--- | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
kind: KubeletConfiguration | ||
authentication: | ||
x509: | ||
clientCAFile: /var/lib/minikube/certs/ca.crt | ||
cgroupDriver: systemd | ||
clusterDomain: "cluster.local" | ||
# disable disk resource management by default | ||
imageGCHighThresholdPercent: 100 | ||
evictionHard: | ||
nodefs.available: "0%" | ||
nodefs.inodesFree: "0%" | ||
imagefs.available: "0%" | ||
failSwapOn: false | ||
staticPodPath: /etc/kubernetes/manifests | ||
--- | ||
apiVersion: kubeproxy.config.k8s.io/v1alpha1 | ||
kind: KubeProxyConfiguration | ||
clusterCIDR: "10.244.0.0/16" | ||
metricsBindAddress: 1.1.1.1:10249 |
67 changes: 67 additions & 0 deletions
67
hack/update/kubernetes_version/templates/v1beta2/containerd-pod-network-cidr.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: InitConfiguration | ||
localAPIEndpoint: | ||
advertiseAddress: 1.1.1.1 | ||
bindPort: 8443 | ||
bootstrapTokens: | ||
- groups: | ||
- system:bootstrappers:kubeadm:default-node-token | ||
ttl: 24h0m0s | ||
usages: | ||
- signing | ||
- authentication | ||
nodeRegistration: | ||
criSocket: /run/containerd/containerd.sock | ||
name: "mk" | ||
kubeletExtraArgs: | ||
node-ip: 1.1.1.1 | ||
taints: [] | ||
--- | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: ClusterConfiguration | ||
apiServer: | ||
certSANs: ["127.0.0.1", "localhost", "1.1.1.1"] | ||
extraArgs: | ||
enable-admission-plugins: "NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" | ||
controllerManager: | ||
extraArgs: | ||
leader-elect: "false" | ||
scheduler: | ||
extraArgs: | ||
leader-elect: "false" | ||
certificatesDir: /var/lib/minikube/certs | ||
clusterName: mk | ||
controlPlaneEndpoint: control-plane.minikube.internal:8443 | ||
dns: | ||
type: CoreDNS | ||
etcd: | ||
local: | ||
dataDir: /var/lib/minikube/etcd | ||
extraArgs: | ||
proxy-refresh-interval: "70000" | ||
kubernetesVersion: v1.19.0 | ||
networking: | ||
dnsDomain: cluster.local | ||
podSubnet: "192.168.32.0/20" | ||
serviceSubnet: 10.96.0.0/12 | ||
--- | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
kind: KubeletConfiguration | ||
authentication: | ||
x509: | ||
clientCAFile: /var/lib/minikube/certs/ca.crt | ||
cgroupDriver: systemd | ||
clusterDomain: "cluster.local" | ||
# disable disk resource management by default | ||
imageGCHighThresholdPercent: 100 | ||
evictionHard: | ||
nodefs.available: "0%" | ||
nodefs.inodesFree: "0%" | ||
imagefs.available: "0%" | ||
failSwapOn: false | ||
staticPodPath: /etc/kubernetes/manifests | ||
--- | ||
apiVersion: kubeproxy.config.k8s.io/v1alpha1 | ||
kind: KubeProxyConfiguration | ||
clusterCIDR: "192.168.32.0/20" | ||
metricsBindAddress: 1.1.1.1:10249 |
67 changes: 67 additions & 0 deletions
67
hack/update/kubernetes_version/templates/v1beta2/containerd.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: InitConfiguration | ||
localAPIEndpoint: | ||
advertiseAddress: 1.1.1.1 | ||
bindPort: 8443 | ||
bootstrapTokens: | ||
- groups: | ||
- system:bootstrappers:kubeadm:default-node-token | ||
ttl: 24h0m0s | ||
usages: | ||
- signing | ||
- authentication | ||
nodeRegistration: | ||
criSocket: /run/containerd/containerd.sock | ||
name: "mk" | ||
kubeletExtraArgs: | ||
node-ip: 1.1.1.1 | ||
taints: [] | ||
--- | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: ClusterConfiguration | ||
apiServer: | ||
certSANs: ["127.0.0.1", "localhost", "1.1.1.1"] | ||
extraArgs: | ||
enable-admission-plugins: "NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" | ||
controllerManager: | ||
extraArgs: | ||
leader-elect: "false" | ||
scheduler: | ||
extraArgs: | ||
leader-elect: "false" | ||
certificatesDir: /var/lib/minikube/certs | ||
clusterName: mk | ||
controlPlaneEndpoint: control-plane.minikube.internal:8443 | ||
dns: | ||
type: CoreDNS | ||
etcd: | ||
local: | ||
dataDir: /var/lib/minikube/etcd | ||
extraArgs: | ||
proxy-refresh-interval: "70000" | ||
kubernetesVersion: v1.19.0 | ||
networking: | ||
dnsDomain: cluster.local | ||
podSubnet: "10.244.0.0/16" | ||
serviceSubnet: 10.96.0.0/12 | ||
--- | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
kind: KubeletConfiguration | ||
authentication: | ||
x509: | ||
clientCAFile: /var/lib/minikube/certs/ca.crt | ||
cgroupDriver: systemd | ||
clusterDomain: "cluster.local" | ||
# disable disk resource management by default | ||
imageGCHighThresholdPercent: 100 | ||
evictionHard: | ||
nodefs.available: "0%" | ||
nodefs.inodesFree: "0%" | ||
imagefs.available: "0%" | ||
failSwapOn: false | ||
staticPodPath: /etc/kubernetes/manifests | ||
--- | ||
apiVersion: kubeproxy.config.k8s.io/v1alpha1 | ||
kind: KubeProxyConfiguration | ||
clusterCIDR: "10.244.0.0/16" | ||
metricsBindAddress: 1.1.1.1:10249 |
Oops, something went wrong.