Skip to content

Dostęp do klastra z użyciem polecenia curl

curl <adres_https_klastra>:6443/api/v1/<zasób> \
--key <klucz_SSL>.key --cert <klucz_SSL>.crt --cacert <certyfikat_CA>.crt

na przykład dostęp do Podów:

curl https://my-cluster.klaster.com:6443/api/v1/pods \
--key admin.key --cert admin.crt --cacert ca.crt

Wyświetlenie wszystkich ścieżek w API (obiekty, np. api)

curl https://<adres_klastra>:6443 -k \
--key admin.key --cert admin.crt --cacert ca.crt

Sprawdzenie wszystkich pól w obiekcie (np. api)

curl https://<adres_klastra>:6443/api -k \
--key admin.key --cert admin.crt --cacert ca.crt