-
Notifications
You must be signed in to change notification settings - Fork 481
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
Add RBAC for endpoint slices for functions and leases for LeaderElection #1160
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8c93467
Add RBAC for endpoint slices for functions
alexellis 39943e9
Add RBAC for leases for LeaderElection
alexellis 4e8e2e3
Add LeaderElection for operator, and worker count
alexellis fb65ba2
Quote reconcileWorkers
alexellis dbc2aae
Inject leader_election env-var for operator
alexellis 0d729f5
Allow ConfigMap writes for operator for leaderelection
alexellis 98581dc
Enable watching of ConfigMaps
alexellis 291ac3e
Enable support for pprof for operator
alexellis 003b8ff
Add reconcile tuning to operator
alexellis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ queueMode: "" # Set to `jetstream` to run the async system backed | |
psp: false | ||
|
||
# image pull policy for openfaas components, can change to `IfNotPresent` for an air-gapped environment | ||
openfaasImagePullPolicy: "Always" | ||
openfaasImagePullPolicy: "IfNotPresent" | ||
|
||
functions: | ||
imagePullPolicy: "Always" # Image pull policy for deployed functions, for OpenFaaS Pro you can also set: IfNotPresent and Never. | ||
|
@@ -94,10 +94,20 @@ gateway: | |
operator: | ||
image: ghcr.io/openfaasltd/faas-netes:0.4.23 | ||
create: false | ||
# Unnecessary when running a single replica of the gateway | ||
leaderElection: | ||
enabled: false | ||
reconcileWorkers: 2 | ||
resources: | ||
requests: | ||
memory: "120Mi" | ||
cpu: "50m" | ||
# When set to true, pprof will be enabled, and the | ||
# service "faas-provider" will gain an extra port to | ||
# expose the pprof endpoint, this cannot be used in production | ||
# since it may bypass authentication, and should only be used | ||
# for debugging purposes | ||
pprof: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should also set default values for |
||
|
||
# For OpenFaaS for Enterprises, these numbers can be set higher, | ||
# if experiencing rate limiting due to a large number of functions | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
operator.reconcileQPS
andoperator.reconcileBurst
should also be added to the configuration options.