Access the api server at the master nodes address followed by the port which is 6443 by default and the API version
curl https://kube-master:6443/version
similarly to get the list of pods, you wuold access the url api/v1/pods
The kubernetes API is group into multiple
APIs are categorized into two
The core group and named group
kubernetes api 관련 설명 내용
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#pod-v1-core
You can also view these on your kubernetes cluster.
Access your kube-api server at port 6443
curl http://localhost:6443 -k
{
"paths": [
"/api",
"/api/v1",
"/apis",
"/apis/",
"/healthz".
"/logs",
"/metrics",
"/openapi/v2",
"/swagger-2.0.0.json",
named api group
curl http://localhost:6443/apis -k | grep "name"
"name": "extensions",
"name": "apps",
"name": "events.k8s.io",
"name": "authentication.k8s.io",
"name": "authorization.k8s.io",
"name": "autoscaling",
"name": "batch",
"name": "certificates,k8s.io",
"name": "networking.k8s.io",
"name": "policy",
"name": "rbac.authorization.k8s.io",
"name": "storage.k8s.io",
"name": "admissionregistration.k8s.io",
"name": "apiextensions.k8s.io",
"name": "scheduling.k8s.io",
'CKA &. CKAD > Security' 카테고리의 다른 글
RBAC (Role Based Access Controls) and Practice Test (0) | 2021.03.29 |
---|---|
Authorization (0) | 2021.03.29 |
Practice Test - KubeConfig (0) | 2021.03.29 |
Practice Test - Certificates API (0) | 2021.03.29 |
Practice Test - View Certificates (0) | 2021.03.29 |