Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prow: Upgrade kubernetes, ingress, calico and more #968

Merged
merged 4 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prow/capo-cluster/infra-md.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
name: prow-worker-v1-30-6-est
version: v1.30.6
name: prow-worker-v1-31-6
version: v1.31.6
4 changes: 2 additions & 2 deletions prow/capo-cluster/kubeadmcontrolplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ spec:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
name: prow-control-plane-v1-30-6-est
name: prow-control-plane-v1-31-6
replicas: 1
version: v1.30.6
version: v1.31.6
4 changes: 2 additions & 2 deletions prow/capo-cluster/machinedeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
name: prow-worker-v1-30-6-est
version: v1.30.6
name: prow-worker-v1-31-6
version: v1.31.6
8 changes: 5 additions & 3 deletions prow/capo-cluster/openstackcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ spec:
enabled: true
allowedCIDRs:
- 10.6.0.0/24
# Jumphost
- 129.192.83.86/32
externalNetwork:
id: df26cc5b-b122-4506-b948-a213d2b0a7d8
identityRef:
Expand Down Expand Up @@ -40,8 +42,8 @@ spec:
bastion:
enabled: true
spec:
flavor: c1m2
flavor: c1m2-est
image:
filter:
name: "Ubuntu-22.04-jammy"
# Ubuntu-24.04
id: 19e017ae-2759-479c-90ac-a400a3f64678
sshKeyName: metal3ci
56 changes: 8 additions & 48 deletions prow/capo-cluster/openstackmachinetemplates.yaml
Original file line number Diff line number Diff line change
@@ -1,79 +1,39 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: prow-control-plane-v1-29-4-new
spec:
template:
spec:
flavor: c4m4
identityRef:
cloudName: prow
name: prow-cloud-config
image:
filter:
name: ubuntu-2204-kube-v1.29.4
rootVolume:
sizeGiB: 100
sshKeyName: metal3ci
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: prow-worker-v1-29-4-new
spec:
template:
spec:
flavor: c8m16avx2
identityRef:
cloudName: prow
name: prow-cloud-config
image:
filter:
name: ubuntu-2204-kube-v1.29.4
rootVolume:
sizeGiB: 100
sshKeyName: metal3ci
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: prow-control-plane-v1-30-6
name: prow-control-plane-v1-30-6-est
spec:
template:
spec:
flavor: c4m4
flavor: c4m12-est
identityRef:
cloudName: prow
name: prow-cloud-config
image:
filter:
name: ubuntu-2204-kube-v1.30.6
rootVolume:
sizeGiB: 100
sshKeyName: metal3ci
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: prow-worker-v1-30-6
name: prow-worker-v1-30-6-est
spec:
template:
spec:
flavor: c8m16avx2
flavor: c8m24-est
identityRef:
cloudName: prow
name: prow-cloud-config
image:
filter:
name: ubuntu-2204-kube-v1.30.6
rootVolume:
sizeGiB: 100
sshKeyName: metal3ci
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: prow-control-plane-v1-30-6-est
name: prow-control-plane-v1-31-6
spec:
template:
spec:
Expand All @@ -83,13 +43,13 @@ spec:
name: prow-cloud-config
image:
filter:
name: ubuntu-2204-kube-v1.30.6
name: ubuntu-2404-kube-v1.31.6
sshKeyName: metal3ci
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: prow-worker-v1-30-6-est
name: prow-worker-v1-31-6
spec:
template:
spec:
Expand All @@ -99,5 +59,5 @@ spec:
name: prow-cloud-config
image:
filter:
name: ubuntu-2204-kube-v1.30.6
name: ubuntu-2404-kube-v1.31.6
sshKeyName: metal3ci
2 changes: 1 addition & 1 deletion prow/cluster-resources/autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
app: cluster-autoscaler
spec:
containers:
- image: registry.k8s.io/autoscaling/cluster-autoscaler:v1.30.2
- image: registry.k8s.io/autoscaling/cluster-autoscaler
name: cluster-autoscaler
command:
- /cluster-autoscaler
Expand Down
24 changes: 15 additions & 9 deletions prow/cluster-resources/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/projectcalico/calico/v3.28.2/manifests/calico.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/controller-manager/cloud-controller-manager-roles.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/controller-manager/cloud-controller-manager-role-bindings.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/cinder-csi-plugin/cinder-csi-controllerplugin-rbac.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/cinder-csi-plugin/cinder-csi-controllerplugin.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/cinder-csi-plugin/cinder-csi-nodeplugin-rbac.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/cinder-csi-plugin/cinder-csi-nodeplugin.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.30.1/manifests/cinder-csi-plugin/csi-cinder-driver.yaml
- https://raw.githubusercontent.com/projectcalico/calico/v3.29.2/manifests/calico.yaml
# Check available versions at https://github.com/kubernetes/cloud-provider-openstack/releases
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/controller-manager/cloud-controller-manager-roles.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/controller-manager/cloud-controller-manager-role-bindings.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/cinder-csi-plugin/cinder-csi-controllerplugin-rbac.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/cinder-csi-plugin/cinder-csi-controllerplugin.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/cinder-csi-plugin/cinder-csi-nodeplugin-rbac.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/cinder-csi-plugin/cinder-csi-nodeplugin.yaml
- https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/v1.31.3/manifests/cinder-csi-plugin/csi-cinder-driver.yaml
- autoscaler.yaml
- coredns-pdb.yaml

images:
# Check available tags at https://github.com/kubernetes/autoscaler/tags
- name: registry.k8s.io/autoscaling/cluster-autoscaler
newTag: v1.31.1

generatorOptions:
disableNameSuffixHash: true

Expand Down
4 changes: 0 additions & 4 deletions prow/infra/add-args.yaml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer needed since the upstream has changed the defaults. See changelog here: https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.12.0

This file was deleted.

8 changes: 0 additions & 8 deletions prow/infra/configmap-patch.yaml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer needed since the upstream has changed the defaults. See changelog here: https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.12.0

This file was deleted.

8 changes: 1 addition & 7 deletions prow/infra/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/kubernetes/ingress-nginx/deploy/static/provider/cloud?ref=controller-v1.10.4
- https://github.com/kubernetes/ingress-nginx/deploy/static/provider/cloud?ref=controller-v1.12.0
- cluster-issuer-http.yaml
- storageclass.yaml
- ingress-controller-pdb.yaml
Expand All @@ -15,12 +15,6 @@ patches:
kind: Job
namespace: ingress-nginx
- path: ingress-controller-deployment-patch.yaml
- path: configmap-patch.yaml
- path: add-args.yaml
target:
kind: Deployment
namespace: ingress-nginx
name: ingress-nginx-controller
# Run on infra nodes
- path: toleration-node-selector-patch.yaml
target:
Expand Down