Skip to content
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

Can't configure knative service for isolation #10

Open
wilsonianb opened this issue Aug 26, 2019 · 5 comments
Open

Can't configure knative service for isolation #10

wilsonianb opened this issue Aug 26, 2019 · 5 comments

Comments

@wilsonianb
Copy link
Owner

knative api doesn't let you specify

  • AutomountServiceAccountToken
  • DNSPolicy
  • RuntimeClassName

https://github.com/knative/serving/blob/d2ea625894c4fc9fba2caeca88792f87e020408b/pkg/apis/serving/fieldmask.go#L151-L177

@wilsonianb
Copy link
Owner Author

In version 1.6+, you can opt out of automounting API credentials for a service account by setting automountServiceAccountToken: false on the service account

https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server

@wilsonianb
Copy link
Owner Author

Configuring coredns POD-MODE to disabled might be comparable to dnsPolicy: default but it may also mess up knative.
https://coredns.io/plugins/kubernetes/

@wilsonianb
Copy link
Owner Author

wilsonianb commented Aug 27, 2019

Could try using the deprecated

annotations:
   io.kubernetes.cri.untrusted-workload: "true"

to get kata to work without RuntimeClassName
https://github.com/kata-containers/documentation/blob/master/how-to/containerd-kata.md

or simply make kata-fc the default runtime for all pods, but then we'd have to deal with kata/firecracker limitations on all pods
kata-containers/documentation#351

@wilsonianb
Copy link
Owner Author

The io.kubernetes.cri.untrusted-workload annotation method works

knative issue opened:
knative/serving#5306

@wilsonianb
Copy link
Owner Author

Discussion on how more PodSpec fields could be included in knative
https://docs.google.com/document/d/1DY5t7LqGPOq5Jw5AixSgJY8S2VuQnTGzRpV6apY_nAI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant