kubernetes

package module
v0.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InCluster      bool     `json:"inCluster"`
	KubeConfigPath string   `json:"kubeConfigPath"`
	Namespace      string   `json:"namespace"`
	Labels         []string `json:"labels"`
	TimeoutSeconds int      `json:"timeoutSeconds"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL