Skip to content

Commit

Permalink
update docuemnt for v1.28.1 release (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
XudongLiuHarold authored Jun 13, 2024
1 parent 21ee8d6 commit 8ac27df
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 57 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.30.1
Official releases of the vSphere Cloud Controller Manager container image can be found at:

```bash
registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.30.1 # <== latest version
registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.28.1 # <== latest version
```

The very latest builds from the tip of master, which may not be stable, can be found at:
Expand Down
Binary file added charts/vsphere-cpi-v1.28.1.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions charts/vsphere-cpi/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 1.28.0
appVersion: 1.28.1
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
name: vsphere-cpi
version: 1.28.0
version: 1.28.1
keywords:
- vsphere
- vmware
Expand Down
36 changes: 15 additions & 21 deletions charts/vsphere-cpi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,50 +12,44 @@ config:
region: "k8s-region"
zone: "k8s-zone"
thumbprint: ""

secret:
# Specifies whether Secret should be created from config values
create: true
# The name of the Secret referred to in the vsphere-cloud-config ConfigMap
# If your Kubernetes platform provides this secret, set create to false and adjust the secret name
name: vsphere-cloud-secret

## Specify if a Pod Security Policy for kube-state-metrics must be created
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
podSecurityPolicy:
enabled: false
annotations: {}
# Specify pod annotations
# Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor
# Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
# Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl
#
# seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
# seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
# apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'

# Specify pod annotations
# Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor
# Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
# Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl
#
# seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
# seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
# apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
# Run containers to have security context. Default is 'nobody' (65534/65534) in distroless
securityContext:
enabled: true
runAsUser: 1001
fsGroup: 1001

# RBAC configuration
rbac:
# Specifies whether RBAC resources should be created
create: true

serviceAccount:
# Specifies whether a ServiceAccount should be created
create: true
# The name of the ServiceAccount to use.
name: cloud-controller-manager

# Daemonset configuration
daemonset:
annotations: {}
image: gcr.io/cloud-provider-vsphere/cpi/release/manager
tag: v1.28.0
tag: v1.28.1
pullPolicy: IfNotPresent
dnsPolicy: ClusterFirst
cmdline:
Expand All @@ -67,12 +61,12 @@ daemonset:
additionalParams: {}
replicaCount: 1
resources: {}
# limits:
# cpu: 500m
# memory: 512Mi
# requests:
# cpu: 256m
# memory: 128Mi
# limits:
# cpu: 500m
# memory: 512Mi
# requests:
# cpu: 256m
# memory: 128Mi
podAnnotations: {}
## Additional pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Expand Down
2 changes: 1 addition & 1 deletion cluster/images/controller-manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static-debian11:latest
FROM ${GOLANG_IMAGE} as builder

# This build arg is the version to embed in the CPI binary
ARG VERSION=1.28.0
ARG VERSION=1.28.1

# This build arg controls the GOPROXY setting
ARG GOPROXY
Expand Down
6 changes: 3 additions & 3 deletions docs/book/tutorials/disable-node-deletion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ spec:
priorityClassName: system-node-critical
containers:
- name: vsphere-cloud-controller-manager
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:v1.28.0
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.28.1
args:
- --cloud-provider=vsphere
- --v=2
- --cloud-config=/etc/cloud/vsphere.conf
env:
- name: SKIP_NODE_DELETION
value: true
- name: SKIP_NODE_DELETION
value: true
volumeMounts:
- mountPath: /etc/cloud
name: vsphere-config-volume
Expand Down
2 changes: 1 addition & 1 deletion hack/update-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ update_readme_files() {

update_release_folder() {
git fetch --tags
if [ ! -d "${REPO_ROOT}/releases/${major_minor_version}/vsphere-cloud-controller-manager.yaml" ]; then
if [ ! -e "${REPO_ROOT}/releases/${major_minor_version}/vsphere-cloud-controller-manager.yaml" ]; then
mkdir -p "${REPO_ROOT}"/releases/"${major_minor_version}"
latest_release=$(git tag --sort=-v:refname | grep -E "${SEMVER_REGEX}" | sed -n '1p' | cut -d '.' -f 1,2)
cp "${REPO_ROOT}"/releases/"${latest_release}"/vsphere-cloud-controller-manager.yaml "${REPO_ROOT}"/releases/"${major_minor_version}"/vsphere-cloud-controller-manager.yaml
Expand Down
33 changes: 26 additions & 7 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
apiVersion: v1
entries:
vsphere-cpi:
- apiVersion: v2
appVersion: v1.28.1
created: "2024-06-13T10:43:07.301407874+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: 27f47745d5f031c9b2b17832888f8981d0a9a1a893a62914f7f670c0d4518f47
home: https://github.com/kubernetes/cloud-provider-vsphere
icon: https://raw.githubusercontent.com/kubernetes/cloud-provider-vsphere/master/docs/vmware_logo.png
keywords:
- vsphere
- vmware
- cloud
- provider
- cpi
name: vsphere-cpi
sources:
- https://github.com/kubernetes/cloud-provider-vsphere
urls:
- https://kubernetes.github.io/cloud-provider-vsphere/charts/vsphere-cpi-v1.28.1.tgz
version: v1.28.1
- apiVersion: v2
appVersion: 1.28.0
created: "2023-08-25T09:56:47.674174+08:00"
created: "2024-06-13T10:43:07.300307416+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: 2cb4772b757548de51481089706e6c2f1a2cbfe72eef9c8e673b9e22e8e1e9e0
home: https://github.com/kubernetes/cloud-provider-vsphere
Expand All @@ -22,7 +41,7 @@ entries:
version: 1.28.0
- apiVersion: v2
appVersion: 1.27.0
created: "2023-08-25T09:56:47.673406+08:00"
created: "2024-06-13T10:43:07.299471704+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: 4b70f3e1ac580079f4600703bef4fc2007e87e96e587c866657a6e91fad83a1c
home: https://github.com/kubernetes/cloud-provider-vsphere
Expand All @@ -41,7 +60,7 @@ entries:
version: 1.27.0
- apiVersion: v2
appVersion: 1.26.0
created: "2023-08-25T09:56:47.672602+08:00"
created: "2024-06-13T10:43:07.298694195+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: 2ecf416700c819f408eedf9263d08dbc04cd61969576be13d8935f15605f4a69
home: https://github.com/kubernetes/cloud-provider-vsphere
Expand All @@ -60,7 +79,7 @@ entries:
version: 1.26.0
- apiVersion: v2
appVersion: 1.25.0
created: "2023-08-25T09:56:47.671746+08:00"
created: "2024-06-13T10:43:07.297774696+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: 3d48df49fdfb8bda6b5cec1d9e9f566183a150c8c01e111eec5e22ab1f557e31
home: https://github.com/kubernetes/cloud-provider-vsphere
Expand All @@ -79,7 +98,7 @@ entries:
version: 1.25.0
- apiVersion: v2
appVersion: 1.24.2
created: "2023-08-25T09:56:47.670766+08:00"
created: "2024-06-13T10:43:07.296813808+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: d0bfaf8a081128f9477b8d8ff00079f8506d4aa2ea899f55511d06400179b159
home: https://github.com/kubernetes/cloud-provider-vsphere
Expand All @@ -98,7 +117,7 @@ entries:
version: 1.24.2
- apiVersion: v2
appVersion: 1.24.1
created: "2023-08-25T09:56:47.668423+08:00"
created: "2024-06-13T10:43:07.295698456+05:30"
description: A Helm chart for vSphere Cloud Provider Interface Manager (CPI)
digest: 6e9dec3e4c6aaeed0d7f95aa2beade986d5a0a2261509b11479ceb1a51312096
home: https://github.com/kubernetes/cloud-provider-vsphere
Expand All @@ -115,4 +134,4 @@ entries:
urls:
- https://kubernetes.github.io/cloud-provider-vsphere/charts/vsphere-cpi-1.24.1.tgz
version: 1.24.1
generated: "2023-08-25T09:56:47.667068+08:00"
generated: "2024-06-13T10:43:07.294412919+05:30"
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ spec:
securityContext:
runAsUser: 1001
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
serviceAccountName: cloud-controller-manager
containers:
- name: vsphere-cloud-controller-manager
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:v1.2.1
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.28.1
args:
- --v=2
- --cloud-provider=vsphere
Expand All @@ -57,9 +57,9 @@ spec:
cpu: 200m
hostNetwork: true
volumes:
- name: vsphere-config-volume
configMap:
name: cloud-config
- name: vsphere-config-volume
configMap:
name: cloud-config
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
spec:
containers:
- name: vsphere-cloud-controller-manager
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:v1.2.1
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.28.1
args:
- --v=2
- --cloud-config=/etc/cloud/vsphere.conf
Expand Down
2 changes: 1 addition & 1 deletion releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Note that YAML files from [manifests/controller-manager repo](https://github.com

## Example workflow

In this tutorial, we will be installing the latest version of cloud provider vsphere(v1.28.0) freshly. If you have an older version of CPI already installed, the steps to deploy and upgrade CPI stay the same. With our `RollingUpdate` update strategy, after you update a DaemonSet template, old DaemonSet pods will be killed, and new DaemonSet pods will be created automatically.
In this tutorial, we will be installing the latest version of cloud provider vsphere(v1.28.1) freshly. If you have an older version of CPI already installed, the steps to deploy and upgrade CPI stay the same. With our `RollingUpdate` update strategy, after you update a DaemonSet template, old DaemonSet pods will be killed, and new DaemonSet pods will be created automatically.

### Step 1: find the kubernetes major version you are using

Expand Down
14 changes: 7 additions & 7 deletions releases/v1.28/vsphere-cloud-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ spec:
priorityClassName: system-node-critical
containers:
- name: vsphere-cloud-controller-manager
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.28.0
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.28.1
args:
- --cloud-provider=vsphere
- --v=2
Expand All @@ -255,9 +255,9 @@ spec:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists

0 comments on commit 8ac27df

Please sign in to comment.