Skip to content

This repository contains a Kubernetes Job that sets up the necessary ServiceAccount, token, and Kubeconfig in the management cluster for Sveltos-applier to operate in pull mode, enabling it to fetch configurations from the management cluster.

License

Notifications You must be signed in to change notification settings

projectsveltos/pullmode-prepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is used when running pullmode sanity. This Job is deployed in the management cluster and creates a ServiceAccount for sveltos-applier with proper permissions. Then it creates a Secret of type "kubernetes.io/service-account-token" associated to the sveltos-applier ServiceAccount. With this token it generates a Kubeconfig which is stored in a ConfigMap.

The Makefile takes the content of this ConfigMap and creates a Secret in the managed cluster where sveltos-applier will be deployed. So that sveltos-applier can reach the management and fetch the configuration it has to deploy.

None of the Makefile target should be directly invoked.

The main Makefile invokes those.

About

This repository contains a Kubernetes Job that sets up the necessary ServiceAccount, token, and Kubeconfig in the management cluster for Sveltos-applier to operate in pull mode, enabling it to fetch configurations from the management cluster.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published