Skip to content

Commit

Permalink
[Kubernetes] v1.28.0 [sync git]
Browse files Browse the repository at this point in the history
  • Loading branch information
khs1994 committed Aug 18, 2023
1 parent fa588e6 commit 7944c07
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion kubernetes/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KUBERNETES_VERSION=1.27.0
KUBERNETES_VERSION=1.28.0

# KUBERNETES_VERSION=

Expand Down
38 changes: 19 additions & 19 deletions kubernetes/.github/workflows/setup-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ jobs:
# GENERATE_CLI_HELP: "true"

# next version
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.28.0-beta.0
LNMP_K8S_GET: --url
GENERATE_CLI_HELP: "true"
# - os: ubuntu
# dist: 20.04
# CI_KUBERNETES_VERSION: 1.29.0-alpha.1
# LNMP_K8S_GET: --url
# GENERATE_CLI_HELP: "true"

# current stable version
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.27.0
CI_KUBERNETES_VERSION: 1.28.0
LNMP_K8S_LOCAL_INSTALL_OPTIONS: --crio
K8S_IMAGE_NS: khs1994
K8S_IMAGE_REGISTRY: useccr.ccs.tencentyun.com
UPLOAD_TO_CODING: "true"
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.27.0
CI_KUBERNETES_VERSION: 1.28.0
LNMP_K8S_GET: --url

GENERATE_CLI_HELP: "true"
Expand All @@ -69,12 +69,12 @@ jobs:
# ipv6
# - os: ubuntu
# dist: 20.04
# CI_KUBERNETES_VERSION: 1.27.0
# CI_KUBERNETES_VERSION: 1.28.0
# LNMP_K8S_GET: --url
# IPV6: "true"
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.27.0
CI_KUBERNETES_VERSION: 1.28.0
LNMP_K8S_GET: --url
CNI_CALICO_EBPF: 'true'
# v1.24.0+ not support docker
Expand All @@ -84,21 +84,21 @@ jobs:
# LNMP_K8S_LOCAL_INSTALL_OPTIONS: --docker
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.27.0
CI_KUBERNETES_VERSION: 1.28.0
LNMP_K8S_GET: --url
K8S_ROOT: /opt/k8s-custom
# old version
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.26.4
CI_KUBERNETES_VERSION: 1.27.4
LNMP_K8S_GET: --url
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.25.9
CI_KUBERNETES_VERSION: 1.26.7
LNMP_K8S_GET: --url
- os: ubuntu
dist: 20.04
CI_KUBERNETES_VERSION: 1.24.13
CI_KUBERNETES_VERSION: 1.25.12
LNMP_K8S_GET: --url
fail-fast: false
steps:
Expand Down Expand Up @@ -516,7 +516,7 @@ jobs:
export PATH=${K8S_ROOT:-/opt/k8s}/bin:$PATH
BASE_BRANCH=master
# BASE_BRANCH=v1.25.0-config
if ! [ $CI_KUBERNETES_VERSION = '1.27.0' -a "$GENERATE_CLI_HELP" = "true" ];then
if ! [ $CI_KUBERNETES_VERSION = '1.28.0' -a "$GENERATE_CLI_HELP" = "true" ];then
exit 0
fi

Expand All @@ -542,9 +542,9 @@ jobs:
run:
|
export PATH=${K8S_ROOT:-/opt/k8s}/bin:$PATH
BASE_BRANCH=v1.28.0-alpha.2-config
# BASE_BRANCH=master
if [ $CI_KUBERNETES_VERSION != '1.28.0-beta.0' ];then
BASE_BRANCH=v1.29.0-alpha.1-config
BASE_BRANCH=master
if [ $CI_KUBERNETES_VERSION != '1.29.0-alpha.1' ];then
exit 0
fi

Expand All @@ -571,8 +571,8 @@ jobs:
|
export PATH=${K8S_ROOT:-/opt/k8s}/bin:$PATH
BASE_BRANCH=v1.28.0-alpha.1
# BASE_BRANCH=master
if [ $CI_KUBERNETES_VERSION != '1.29.0-alpha.1' ];then
BASE_BRANCH=master
if [ $CI_KUBERNETES_VERSION != 'x.y.z-alpha.1' ];then
exit 0
fi

Expand Down
4 changes: 2 additions & 2 deletions kubernetes/bin/lwpm.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$env:LWPM_DOCKER_REGISTRY="mirror.ccs.tencentyun.com"

./lnmp/windows/lnmp-windows-pm.ps1 add `
kubernetes-node@1.27.0 `
kubernetes-node@1.28.0 `
--all-platform

$env:LWPM_DOCKER_REGISTRY=$env:LWPM_DOCKER_REGISTRY_MIRROR

./lnmp/windows/lnmp-windows-pm.ps1 push kubernetes-node@1.27.0
./lnmp/windows/lnmp-windows-pm.ps1 push kubernetes-node@1.28.0
2 changes: 1 addition & 1 deletion kubernetes/cfssl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM --platform=${TARGETPLATFORM} alpine:edge as tool

ENV KUBECTL_VERSION=v1.27.0
ENV KUBECTL_VERSION=v1.28.0

ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/docker-compose.bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

services:
k8s_apiserver:
image: registry.k8s.io/kube-apiserver:v1.27.0
image: registry.k8s.io/kube-apiserver:v1.28.0

etcd:
image: quay.io/coreos/etcd:v3.5.8
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kubernetes-release/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.16

ENV KUBERNETES_VERSION=v1.27.0
ENV KUBERNETES_VERSION=v1.28.0

# ENV KUBERNETES_VERSION=

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kubernetes-release/Dockerfile.buildx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

FROM alpine

ARG KUBERNETES_VERSION=v1.27.0
ARG KUBERNETES_VERSION=v1.28.0

# ARG KUBERNETES_VERSION=

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kubernetes-release/release/stable.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.27.0
v1.28.0
2 changes: 1 addition & 1 deletion kubernetes/rpi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ foreach($item in $items){scp ./wsl2/certs/$item [email protected]:/home/pi/ln

$ $items="kube-proxy","kubelet","kubectl","kubeadm","mounter"

$ foreach($item in $items){scp ./kubernetes-release/release/v1.27.0-linux-arm64/kubernetes/server/bin/$item [email protected]:/home/pi/}
$ foreach($item in $items){scp ./kubernetes-release/release/v1.28.0-linux-arm64/kubernetes/server/bin/$item [email protected]:/home/pi/}
```

## 登录到树莓派
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/wsl2/00-README.NODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ $ ./wsl2/bin/kube-check

$ $env:WSLENV="K8S_ROOT/u:KUBERNETES_VERSION"
$ $env:K8S_ROOT="/wsl/wsl-k8s-data/k8s"
# 请将 1.27.0 替换为实际的 k8s 版本号
$ $env:KUBERNETES_VERSION='1.27.0'
# 请将 1.28.0 替换为实际的 k8s 版本号
$ $env:KUBERNETES_VERSION='1.28.0'

$ wsl -d wsl-k8s -- sh -xc 'mkdir -p ${K8S_ROOT:?err}/bin'
$ wsl -d wsl-k8s -- bash -xc 'cp -a kubernetes-release/release/v${KUBERNETES_VERSION}-linux-amd64/kubernetes/server/bin/{kube-proxy,kubectl,kubelet,kubeadm,mounter} ${K8S_ROOT:?err}/bin'
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/wsl2/00-README.SERVER.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ $ wsl -d wsl-k8s -- sh -xc 'cp ${K8S_ROOT:?err}/etc/kubernetes/pki/*.yaml
$ wsl -d wsl-k8s -- sh -xc 'cp ${K8S_ROOT:?err}/etc/kubernetes/pki/*.kubeconfig ${K8S_ROOT:?err}/etc/kubernetes'
$ $env:WSLENV="K8S_ROOT/u:KUBERNETES_VERSION"
# 请将 1.27.0 替换为实际的 k8s 版本号
$ $env:KUBERNETES_VERSION='1.27.0'
# 请将 1.28.0 替换为实际的 k8s 版本号
$ $env:KUBERNETES_VERSION='1.28.0'
$ wsl -d wsl-k8s -- bash -xc 'cp -a kubernetes-release/release/v${KUBERNETES_VERSION}-linux-amd64/kubernetes/server/bin/kube-{apiserver,controller-manager,scheduler} ${K8S_ROOT:?err}/bin'
```
Expand Down

0 comments on commit 7944c07

Please sign in to comment.