-
Notifications
You must be signed in to change notification settings - Fork 92
Split Contour from Envoy pods and implement Network Policy #89
Conversation
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.
Did some manual testing and verified:
- If one of the contour pods goes down, envoy will open up a new connection to another instance
- Prometheus is able to scrape metrics from envoy
One thing that we should keep in mind is that network policy does not prevent access to the envoy admin interface from the host network, so we might still need a solution for that.
- port: 443 | ||
name: https | ||
protocol: TCP | ||
targetPort: 8443 | ||
selector: | ||
app: contour |
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.
s/contour/envoy
deployment/contour/03-envoy.yaml
Outdated
volumes: | ||
- name: contour-config | ||
emptyDir: {} | ||
restartPolicy: Always |
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.
Should we disable automount of service account?
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.
The contour-config
? That's setup by the initContainer.
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.
Sorry. Meant setting automountServiceAccountToken: false
so that the default service account does not get mounted to the envoy pod, which does not need access to the API server.
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.
ahh I see, yup can do that
Signed-off-by: Steve Sloka <steves@heptio.com>
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.
LGTM!
Fixes #87