Kubeconfig¶ Polycrate is integrated with Kubernetes and can connect to a cluster using a kubeconfig file. By default, Polycrate looks for kubeconfig files named kubeconfig.yml inside the artifacts directory of a block. This can be overridden using the kubeconfig.filename stanza in the block configuration.

A kubeconfig file can be created automatically by a block or provided manually (useful for existing infrastructure).

The kubeconfig file can be consumed by the owning block itself or by other blocks using the kubeconfig stanza in the block configuration:


name: block-a kubeconfig: from: block-b filename: kubeconfig.yml This will add an environment variable (KUBECONFIG=path/to/kubeconfig/of/block-b) to the container that points kubectl, etc to the right kubeconfig to work with.

Kontaktieren Sie uns

Unsere Container-Experten beraten Sie gerne und individuell.

✉ hello@ayedo.de · ☎ +49 681 3875 3330

Wir antworten in der Regel innerhalb weniger Stunden auf Ihre Nachricht.

Oder buchen Sie Ihren Termin direkt.