k8s

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Kubernetes Support

Kubernetes offers an api from the master node(s) which can be used to get some internal information.

For accessing this api, we need an access token.

AWS

To get the token via AWS IAM Authenticator, you can run:

$ aws-iam-authenticator token -i CLUSTERID

This is a bearer token that can be used on our API side to work with the cluster.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsK8sAccessToken

func GetAwsK8sAccessToken(k8sClusterId string, stsPartitionId string) (accessToken string)

func GetNodesInternalIpAddresses

func GetNodesInternalIpAddresses(clusterEndpoint string, limit uint, authToken string, certClientFile string) (result []string)

Returns the internal ip addresses of all known nodes of the cluster.

func GetTokenViaAwsIamAuthenticatorClient

func GetTokenViaAwsIamAuthenticatorClient(k8sClusterId string) (accesstoken string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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