Skip to content

Instantly share code, notes, and snippets.

@shvyrev
Created November 11, 2024 08:33
Show Gist options
  • Save shvyrev/f22f88485d25ffe922acaa4031830efd to your computer and use it in GitHub Desktop.
Save shvyrev/f22f88485d25ffe922acaa4031830efd to your computer and use it in GitHub Desktop.
{} ~ cat ~/.kube/config
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlakNDQVIrZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWtNU0l3SUFZRFZRUUREQmx5YTJVeUxYTmwKY25abGNpMWpZVUF4TnpFMk5EVTJOVE14TUI0WERUSTBNRFV5TXpBNU1qZzFNVm9YRFRNME1EVXlNVEE1TWpnMQpNVm93SkRFaU1DQUdBMVVFQXd3WmNtdGxNaTF6WlhKMlpYSXRZMkZBTVRjeE5qUTFOalV6TVRCWk1CTUdCeXFHClNNNDlBZ0VHQ0NxR1NNNDlBd0VIQTBJQUJJNTJVWG1UVnZVdnJYaVk3eGh4M2s3SlY4eFlpaFFIRGpMN3FUQjUKZEREZnRYMzJJcENubkJHU3R0SmhDT2R5cTlUQ2dLbEtTTm1qVytwS2dXUWhEWmFqUWpCQU1BNEdBMVVkRHdFQgovd1FFQXdJQ3BEQVBCZ05WSFJNQkFmOEVCVEFEQVFIL01CMEdBMVVkRGdRV0JCUTZBKzRDY2E1UDdjb1FmaWp4Clh2Tk5pQ1htcVRBS0JnZ3Foa2pPUFFRREFnTkpBREJHQWlFQXozRVVqWC9aeUpTZ2l0azVoRkc3RWhUYWNocEQKekZsb2czd0x2Y1VYNVdVQ0lRQ04zbk1UMGUrd0VuY3UySWFMTTVPOXBGQldGNU1HaExyaHF2cGV0b2lrM1E9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
server: https://192.168.76.254:6443
name: k8s-ostap
contexts:
- context:
cluster: k8s-ostap
user: oidc@k8s-ostap-fbcd
name: k8s-ostap
current-context: k8s-ostap
kind: Config
preferences: {}
users:
- name: oidc@k8s-ostap-fbcd
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- oidc-login
- get-token
- --oidc-issuer-url=https://idp.fbcd.ru/realms/k8s-ostap
- --oidc-client-id=k8s-ostap-fbcd
command: kubectl
env: null
interactiveMode: IfAvailable
provideClusterInfo: false% {} ~ kubectl get pods
error: unknown command "oidc-login" for "kubectl"
E1111 11:32:47.016106 3596 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://192.168.76.254:6443/api?timeout=32s\": getting credentials: exec: executable kubectl failed with exit code 1"
error: unknown command "oidc-login" for "kubectl"
E1111 11:32:47.088048 3596 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://192.168.76.254:6443/api?timeout=32s\": getting credentials: exec: executable kubectl failed with exit code 1"
error: unknown command "oidc-login" for "kubectl"
E1111 11:32:47.161137 3596 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://192.168.76.254:6443/api?timeout=32s\": getting credentials: exec: executable kubectl failed with exit code 1"
error: unknown command "oidc-login" for "kubectl"
E1111 11:32:47.229718 3596 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://192.168.76.254:6443/api?timeout=32s\": getting credentials: exec: executable kubectl failed with exit code 1"
error: unknown command "oidc-login" for "kubectl"
E1111 11:32:47.300795 3596 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://192.168.76.254:6443/api?timeout=32s\": getting credentials: exec: executable kubectl failed with exit code 1"
Unable to connect to the server: getting credentials: exec: executable kubectl failed with exit code 1
{} ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment