Skip to content

Instantly share code, notes, and snippets.

@shvyrev
Created November 11, 2024 06:16
Show Gist options
  • Save shvyrev/14887c4275675201c9e9f372e88434b1 to your computer and use it in GitHub Desktop.
Save shvyrev/14887c4275675201c9e9f372e88434b1 to your computer and use it in GitHub Desktop.
~ ⌚ 9:14:33
$ kubectl config get-contexts
zsh: correct 'config' to '.config' [nyae]? n
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* k8s-ostap k8s-ostap oidc@k8s-ostap-fbcd omni-staging
~ ⌚ 9:14:55
$ 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
namespace: omni-staging
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
~ ⌚ 9:15:06
$ kubectl get pods
error: unknown command "oidc-login" for "kubectl"
E1111 09:15:37.964690 3876 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 09:15:38.042637 3876 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 09:15:38.118793 3876 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 09:15:38.195895 3876 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 09:15:38.268964 3876 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
~ ⌚ 9:15:38
$ ping 192.168.76.254
PING 192.168.76.254 (192.168.76.254): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
^C
--- 192.168.76.254 ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment