Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Split Contour from Envoy pods and implement Network Policy #89

Merged
merged 1 commit into from
May 4, 2018

Conversation

stevesloka
Copy link
Member

@stevesloka stevesloka commented May 3, 2018

Fixes #87

Copy link
Contributor

@alexbrand alexbrand left a 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
Copy link
Contributor

Choose a reason for hiding this comment

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

s/contour/envoy

volumes:
- name: contour-config
emptyDir: {}
restartPolicy: Always
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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.

Copy link
Member Author

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>
Copy link
Contributor

@alexbrand alexbrand left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexbrand alexbrand merged commit d835381 into projectcontour:master May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants