-
Notifications
You must be signed in to change notification settings - Fork 428
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
feat: support env vars and secrets for sidecars #1725
Conversation
7c986cf
to
786c8c0
Compare
786c8c0
to
e5c323f
Compare
e5c323f
to
1a5c46e
Compare
logging: | ||
destination: | ||
Name: cloudwatch | ||
region: us-west-2 | ||
region: us-east-1 |
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.
I'm just curious why you changed regions here...?
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.
good question it is because our e2e tests are deployed in us-east-1
, so that firelens knows where to find the log group and create the log stream in it.
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.
but i do think we need to update the e2e test so that this error can be caught.
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.
ok now it should be able to catch it if the firelens is not able to create the log stream in the log group.
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.
Awesome thanks!
@@ -1,2 +1,8 @@ | |||
FROM nginx | |||
COPY nginx.conf /etc/nginx/nginx.conf | |||
FROM nginx:1.15-alpine |
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.
@@ -49,14 +50,18 @@ sidecars: | |||
nginx: | |||
port: 80 | |||
image: %s # Image URL for sidecar container. | |||
variables: | |||
NGINX_PORT: %s |
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.
Is it possible to set variables
or secrets
per-environment, i.e. dev
and prod
?
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.
Yeah I think you can do the override like this
sidecars:
nginx:
port: 80
image: %s # Image URL for sidecar container.
variables:
NGINX_PORT: 80
environments:
dev:
sidecars:
nginx:
variables:
NGINX_PORT: 8080
prod:
sidecars:
nginx:
variables:
NGINX_PORT: 5000
fixes #1119
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.