Kubernetes
Kubernetes connections enable integration with Kubernetes clusters for health checks, configuration scraping, and playbook automation.
Used By
- Kubernetes Config Scraper - Scrape Kubernetes resource configurations
- Pod Exec Action - Execute commands in pods
- Playbook Actions - Execute Kubernetes automation
| Field | Description | Scheme |
|---|---|---|
cnrm | CNRM connection details | |
connection | The connection url to use, mutually exclusive with | |
eks | EKS connection details | |
gke | GKE connection details | |
kubeconfig | Source for kubeconfig |
One of the connection types must be provided: kubeconfig, EKS, GKE, or CNRM.
Connection Types
Kubeconfig
Connect using a kubeconfig file:
kubeconfig-connection.yamlapiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: remote-cluster
spec:
kubernetes:
kubeconfig:
valueFrom:
secretKeyRef:
name: cluster-credentials
key: kubeconfig
EKS Connection
Connect to Amazon EKS clusters:
| Field | Description | Scheme |
|---|---|---|
cluster* | Name of the EKS cluster |
|
accessKey | Access Key ID | |
connection | The connection url to use, mutually exclusive with | |
endpoint | Custom AWS Endpoint to use |
|
region | The AWS region |
|
secretKey | Secret Access Key | |
skipTLSVerify | Skip TLS verify when connecting to AWS |
|
eks-connection.yamlapiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: eks-production
spec:
kubernetes:
eks:
cluster: my-eks-cluster
region: us-east-1
accessKey:
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_ACCESS_KEY_ID
secretKey:
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_SECRET_ACCESS_KEY
GKE Connection
Connect to Google Kubernetes Engine clusters:
| Field | Description | Scheme |
|---|---|---|
cluster* | Name of the GKE cluster |
|
project* | GCP project ID |
|
zone* | GCP zone where the cluster is located |
|
connection | The connection url to use, mutually exclusive with | |
credentials | The credentials to use for authentication | |
endpoint | Custom GCP Endpoint to use |
|
skipTLSVerify | Skip TLS verification when connecting to GCP |
|
gke-connection.yamlapiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: gke-production
spec:
kubernetes:
gke:
project: my-gcp-project
zone: us-central1-a
cluster: my-gke-cluster
credentials:
valueFrom:
secretKeyRef:
name: gcp-credentials
key: service-account.json
CNRM Connection
Connect via Config Connector for GCP-managed clusters:
| Field | Description | Scheme |
|---|---|---|
clusterResource* | Name of the ContainerCluster resource managed by Config Connector |
|
clusterResourceNamespace* | Namespace containing the ContainerCluster resource |
|
gke.cluster* | Name of the management GKE cluster |
|
gke.projectID* | Google Cloud project ID containing the management GKE cluster |
|
gke.zone* | Zone or region where the management GKE cluster is located |
|
clusterResource | Name of the cluster resource in Config Connector |
|
clusterResourceNamespace | Namespace of the cluster resource |
|
gke | GKE connection details |