package
module
Version:
v0.12.5
Opens a new window with list of versions in this module.
Published: Jul 6, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Kubernetes cluster bootstrap
Install
go get github.com/aacfactory/fns-contrib/cluster/kubernetes
Usage
import (
_ "github.com/aacfactory/fns-contrib/cluster/kubernetes"
)
Config
cluster:
devMode: false
kind: "kubernetes"
options:
kubernetes:
inCluster: true
kubeConfigPath: "~/.kube" # when inCluster is false
namespace: "fns-dev"
timeoutSeconds: 60
labels:
- "FNS=SERVICE"
Note: env MY_POD_NAME
and MY_POD_IP
are required, see inject-data-application for more.
Documentation
¶
type Config struct {
InCluster bool `json:"inCluster"`
KubeConfigPath string `json:"kubeConfigPath"`
Namespace string `json:"namespace"`
Labels []string `json:"labels"`
TimeoutSeconds int `json:"timeoutSeconds"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.