-
Notifications
You must be signed in to change notification settings - Fork 472
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
Chart fix for profiles_namespace (#675) #676
Merged
Merged
Conversation
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
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Hi, thank you for the fix, but please can you fill out the PR template? (it applies to everyone, for every PR) thank you 🙏 |
@alexellis, I filled out the PR template 👍 |
Message from Lucas on Slack thread "Did I get it right" Lucas: 👍 I'll take that as a LGTM |
yes, and just to be 100% sure, here are the testing steps $ hub pr checkout 676
$ kind create cluster
$ kubectl create namespace openfaas
$ kubectl create namespace openfaas-fn
$ helm upgrade --install openfaas ./openfaas --namespace openfaas --values ./openfaas/values.yaml --set basic_auth=false
$ kubectl -n openfaas describe deploy gateway
#...
Pod Template:
Labels: app=gateway
Annotations: prometheus.io.port: 8082
prometheus.io.scrape: true
Service Account: openfaas-controller
Containers:
gateway:
Image: openfaas/gateway:0.18.18
Port: 8080/TCP
Host Port: 0/TCP
Requests:
cpu: 50m
memory: 120Mi
Liveness: http-get http://:8080/healthz delay=0s timeout=5s period=10s #success=1 #failure=3
Readiness: http-get http://:8080/healthz delay=0s timeout=5s period=10s #success=1 #failure=3
Environment:
read_timeout: 65s
write_timeout: 65s
upstream_timeout: 60s
functions_provider_url: http://127.0.0.1:8081/
direct_functions: true
direct_functions_suffix: openfaas-fn.svc.cluster.local
function_namespace: openfaas-fn
faas_nats_address: nats.openfaas.svc.cluster.local
faas_nats_port: 4222
faas_nats_channel: faas-request
scale_from_zero: true
max_idle_conns: 1024
max_idle_conns_per_host: 1024
Mounts: <none>
faas-netes:
Image: openfaas/faas-netes:0.12.2
Port: 8081/TCP
Host Port: 0/TCP
Requests:
cpu: 50m
memory: 120Mi
Environment:
port: 8081
function_namespace: openfaas-fn
profiles_namespace: openfaas
read_timeout: 60s
write_timeout: 60s
image_pull_policy: Always
http_probe: true
set_nonroot_user: false
readiness_probe_initial_delay_seconds: 2
readiness_probe_timeout_seconds: 1
readiness_probe_period_seconds: 2
liveness_probe_initial_delay_seconds: 2
liveness_probe_timeout_seconds: 1
liveness_probe_period_seconds: 2
Mounts:
/tmp from faas-netes-temp-volume (rw)
#... and then you can see the controller startup correctly $ kubectl -n openfaas logs deploy/gateway faas-netes
2020/08/04 13:45:12 Version: 0.12.2 commit: 6dc57e9230786622ab7cb4fdb4e5621b8e2aad1d
W0804 13:45:12.635235 1 client_config.go:543] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2020/08/04 13:45:12 HTTP Read Timeout: 1m0s
2020/08/04 13:45:12 HTTP Write Timeout: 1m0s
2020/08/04 13:45:12 ImagePullPolicy: Always
2020/08/04 13:45:12 DefaultFunctionNamespace: openfaas-fn
2020/08/04 13:45:12 Starting controller
2020/08/04 13:45:12 Waiting for openfaas CRD cache sync
2020/08/04 13:45:12 Cache sync complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
I moved down "profiles_namespace" env variable to right after line 215 in gateway-dep.yaml within the OpenFaaS templates.
Motivation and Context
I got an error while installing OpenFaas latest version via Helm Chart and then I asked a question about this situation and @LucasRoesler said this is a bug then I opened this PR to fix that bug.
Types of changes
Checklist:
git commit -s