Skip to content

Support GKE AutoPilot #1468

@frankreno

Description

@frankreno

Add support and document additional steps to install k8s collection on GKE clusters using Autopilot.

https://cloud.google.com/blog/products/containers-kubernetes/introducing-gke-autopilot

Unlike Fargate, the nodes are not completely abstracted away and current collection works. However there appear to be some issues with the Prometheus Operator and its need to create services in the kube-system namespace

Error: UPGRADE FAILED: failed to create resource: services is forbidden: User "freno@sumologic.com" cannot create resource "services" in API group "" in the namespace "kube-system": GKEAutopilot authz: the namespace "kube-system" is managed and the request's verb "create" is denied

Falco also issues:

[denied by autogke-disallow-hostnamespaces] enabling hostNetwork is not allowed in Autopilot. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-disallow-hostnamespaces] enabling hostNetwork is not allowed in Autopilot. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume docker-socket in container falco is accessed in write mode; disallowed in Autopilot. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume containerd-socket in container falco is accessed in write mode; disallowed in Autopilot. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume lib-modules in container falco is accessed in write mode; disallowed in Autopilot. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume usr-fs used in container init-falco uses path /usr which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume etc-fs used in container init-falco uses path /etc which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume dev-fs used in container falco uses path /dev which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume proc-fs used in container falco uses path /proc which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume boot-fs used in container falco uses path /boot which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume usr-fs used in container falco uses path /usr which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>
[denied by autogke-no-write-mode-hostpath] hostPath volume etc-fs used in container falco uses path /etc which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: ["/var/log/"]. Requesting user: <freno@sumologic.com> and groups: <["system:authenticated"]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions