Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Make kubefed webhook replica count configurable for High Availability… #1457

Closed
wants to merge 3 commits into from
Closed

Conversation

nitinatgh
Copy link
Contributor

… (HA) and made default as 2 replicas

Added in description to the README.md
Bumped up the chart version of the controller manager
Bumped up the dependency version

What this PR does / why we need it: This PR gives the users an option to set the number of replicas for the Kubefed Admission Webhook

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1456

Special notes for your reviewer:
Tested it out as follows in a local kind cluster

$ kubectl get pods -A
NAMESPACE                NAME                                             READY   STATUS    RESTARTS   AGE
...
kube-federation-system   kubefed-admission-webhook-67fb48d5f7-kw4ps       1/1     Running   0          4d17h
...

helm upgrade dry-run

$ helm --namespace kube-federation-system upgrade -i kubefed ./kubefed --create-namespace --dry-run
...
# Source: kubefed/charts/controllermanager/templates/deployments.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: kube-federation-system
  name: kubefed-admission-webhook
  labels:
    kubefed-admission-webhook: "true"
spec:
  replicas: 2
  selector:
    matchLabels:
...

helm upgrade

$ helm --namespace kube-federation-system upgrade -i kubefed ./kubefed --create-namespace
Release "kubefed" has been upgraded. Happy Helming!
NAME: kubefed
LAST DEPLOYED: Tue Sep 14 10:33:35 2021
NAMESPACE: kube-federation-system
STATUS: deployed
REVISION: 13
TEST SUITE: None

$ kubectl get pods -A
NAMESPACE                NAME                                             READY   STATUS    RESTARTS   AGE
...
kube-federation-system   kubefed-admission-webhook-67fb48d5f7-kw4ps       1/1     Running   0          4d17h
kube-federation-system   kubefed-admission-webhook-67fb48d5f7-r4vf5       1/1     Running   0          93s
...

… (HA) and made default as 2 replicas

Added in description to the README.md
Bumped up the chart version of the controller manager
Bumped up the dependency version
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 14, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nitinatgh
To complete the pull request process, please assign jimmidyson after the PR has been reviewed.
You can assign the PR to them by writing /assign @jimmidyson in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nitinatgh
Copy link
Contributor Author

Hi @yuswift @makkes @xunpan ,

Is there any chance that someone can look at this before it goes stale?

Thanks

Nitin

@swiftslee
Copy link
Contributor

swiftslee commented Oct 20, 2021

Hi @yuswift @makkes @xunpan ,

Is there any chance that someone can look at this before it goes stale?

Thanks

Nitin

Thanks for your contribution!
/lgtm

@k8s-ci-robot
Copy link
Contributor

@yuswift: changing LGTM is restricted to collaborators

In response to this:

Hi @yuswift @makkes @xunpan ,

Is there any chance that someone can look at this before it goes stale?

Thanks

Nitin

Thanks for your contribution!
/remove-lifecycle stale
/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@swiftslee
Copy link
Contributor

Unfortunately, I'm not the reviewer of kubefed, but the change looks good to me.

@nitinatgh
Copy link
Contributor Author

Unfortunately, I'm not the reviewer of kubefed, but the change looks good to me.

Ok not a problem, thanks though.

Guess i'll have to wait then.

Nitin

Copy link
Contributor

@makkes makkes left a comment

Choose a reason for hiding this comment

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

LGTM provided @hectorj2f's comments are addressed. Thanka for this improvement

Reverting back as per PR comment. Let users decide to change it instead, but provide the ability.
Setting as default 1 as per PR comments
@makkes
Copy link
Contributor

makkes commented Oct 22, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 22, 2021
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "0.0.3"
appVersion: "0.0.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

as comments in #1453 (comment)

I think after merging #1453, this should be fine.

@nitinatgh
Copy link
Contributor Author

Closing this as the branch doesn't exist and is now replaced by #1469
Sorry

@nitinatgh nitinatgh closed this Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Kubefed Admission Webhook replica count configurable for High Availability
6 participants