kubeck 명령을 사용하여 Astra Data Store 리소스를 관리합니다
kubtl 명령을 사용하거나 Kubernetes API 확장을 사용하여 Astra Data Store 리소스를 관리할 수 있습니다.
샘플 앱을 배포하는 방법에 대한 자세한 내용은 을 참조하십시오 "테스트 응용 프로그램을 배포합니다".
클러스터 유지 보수 정보는 를 참조하십시오 "클러스터를 관리합니다".
-
에 설치한 Astra Data Store kubeck 플러그인 "Astra Data Store를 설치합니다"
Astra Data Store용 Kubernetes 사용자 지정 API 리소스를 나열합니다
Kubernetes 내의 kubtl 명령을 사용하여 Astra Data Store 클러스터와 상호 작용하고 상태를 관찰할 수 있습니다.
'api-resources' 명령에 나열된 각 항목은 Astra Data Store에서 클러스터 관리를 위해 내부적으로 사용하는 Kubernetes 사용자 정의 리소스 정의(CRD)를 나타냅니다.
이 목록은 나중에 보여진 것처럼 입력을 줄이기 위해 각 Astra Data Store 개체의 짧은 이름을 얻는 데 특히 유용합니다.
-
Astra Data Store용 Kubernetes 사용자 API 리소스 목록을 표시합니다.
kubectl api-resources --api-group astrads.netapp.io
응답:
NAME SHORTNAMES APIGROUP NAMESPACED KIND astradsautosupports adsas astrads.netapp.io/v1alpha1 true AstraDSAutoSupport astradscloudsnapshots adscs astrads.netapp.io/v1alpha1 true AstraDSCloudSnapshot astradsclusters adscl astrads.netapp.io/v1alpha1 true AstraDSCluster astradsexportpolicies adsep astrads.netapp.io/v1alpha1 true AstraDSExportPolicy astradsfaileddrives adsfd astrads.netapp.io/v1alpha1 true AstraDSFailedDrive astradslicenses adsli astrads.netapp.io/v1alpha1 true AstraDSLicense astradsnfsoptions adsnf astrads.netapp.io/v1alpha1 true AstraDSNfsOption astradsnodeinfoes adsni astrads.netapp.io/v1alpha1 true AstraDSNodeInfo astradsnodemanagements adsnm astrads.netapp.io/v1alpha1 true AstraDSNodeManagement astradsqospolicies adsqp astrads.netapp.io/v1alpha1 true AstraDSQosPolicy astradsversions adsve astrads.netapp.io/v1alpha1 true AstraDSVersion astradsvolumefiles adsvf astrads.netapp.io/v1alpha1 true AstraDSVolumeFiles astradsvolumes adsvo astrads.netapp.io/v1alpha1 true AstraDSVolume astradsvolumesnapshots adsvs astrads.netapp.io/v1alpha1 true AstraDSVolumeSnapshot
-
Kubernetes 클러스터의 모든 현재 Astra Data Store 객체를 가져오려면 "kubeck get ads-a" 명령을 사용하십시오.
kubectl get ads -A
응답:
NAMESPACE NAME AGE astrads-system astradsqospolicy.astrads.netapp.io/bronze 45h astrads-system astradsqospolicy.astrads.netapp.io/gold 45h astrads-system astradsqospolicy.astrads.netapp.io/silver 45h NAMESPACE NAME STATUS VERSION SERIAL NUMBER MVIP AGE astrads-system astradscluster.astrads.netapp.io/astrads-cluster-9f1 created arda-9.11.1 e000000009 10.224.8.146 46h NAMESPACE NAME AGE astrads-system astradsnodeinfo.astrads.netapp.io/englab.netapp.com 46h astrads-system astradsnodeinfo.astrads.netapp.io/englab.netapp.com 46h astrads-system astradsnodeinfo.astrads.netapp.io/englab.netapp.com 46h astrads-system astradsnodeinfo.astrads.netapp.io/englab.netapp.com 46h NAMESPACE NAME AGE astrads-system astradsversion.astrads.netapp.io/astradsversion 46h NAMESPACE NAME AGE astrads-system astradsvolumefiles.astrads.netapp.io/test23 27h astrads-system astradsvolumefiles.astrads.netapp.io/test234 27h astrads-system astradsvolumefiles.astrads.netapp.io/test2345 4h22m NAMESPACE NAME SIZE IP CLUSTER CREATED astrads-system astradsvolume.astrads.netapp.io/test234 21Gi 172.25.123.123 astrads-cluster-9f1 true astrads-system astradsvolume.astrads.netapp.io/test2345 21Gi 172.25.123.123 astrads-cluster-9f1 true NAMESPACE NAME SEQUENCE COMPONENT EVENT TRIGGER PRIORITY SIZE STATE astrads-system astradsautosupport.astrads.netapp.io/controlplane-adsclustercreatesuccess-20211214t 9 controlplane adsclustercreatesuccess k8sEvent notice 0 uploaded astrads-system astradsautosupport.astrads.netapp.io/controlplane-daily-20211215t0 15 controlplane daily periodic notice 0 uploaded astrads-system astradsautosupport.astrads.netapp.io/controlplane-daily-20211216t0 20 controlplane daily periodic notice 0 uploaded astrads-system astradsautosupport.astrads.netapp.io/storage-callhome.dbs.cluster.cannot.sync.blocks 10 storage callhome.dbs.cluster.cannot.sync.blocks firetapEvent emergency 0 uploaded NAMESPACE NAME ADSCLUSTER VALID PRODUCT EVALUATION ENDDATE VALIDATED astrads-system astradslicense.astrads.netapp.io/e0 astrads-cluster-9f1 true Astra Data Store true 2022-02-07 2021-12-16T20:43:23Z
-
간단한 이름 중 하나를 사용하여 클러스터에 있는 볼륨의 현재 상태를 표시합니다.
kubectl get adsvo -A
응답:
NAMESPACE NAME SIZE IP CLUSTER CREATED astrads-system test234 21Gi 172.25.138.109 astrads-cluster-9f1c99f true astrads-system test2345 21Gi 172.25.138.111 astrads-cluster-9f1c99f true
kubeck 확장명에 대한 도움말 옵션을 사용합니다
NetApp은 라이센스 추가, 노드 관리, 문제 해결, Astra Data Store 클러스터 확장 등의 Astra Data Store 클러스터 관리 작업을 수행할 수 있도록 kubtl 명령에 대한 "astrs"를 확장하였습니다. 이 확장에는 내선사용 방법과 작업에 대한 정보를 제공하는 '-h' 옵션이 포함되어 있습니다.
-
Astra Data Store의 kubbctl 확장명에 대한 모든 명령어 도움말을 보여줌:
kubectl astrads -h
응답:
A kubectl plugin for inspecting your AstraDS deployment Usage: astrads [command] Available Commands: asup Manage AutoSupport clusters Manage clusters drives Manage drives in a cluster faileddrive Manage drive replacement in a cluster help Help about any command license Manage license in the astrads cluster maintenance Manage maintenance status of a node monitoring Manage Monitoring Output nodes Manage nodes in a cluster Flags: --as string Username to impersonate for the operation --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. --cache-dir string Default HTTP cache directory (default "/u/arda/.kube/http-cache") --certificate-authority string Path to a cert file for the certificate authority --client-certificate string Path to a client certificate file for TLS --client-key string Path to a client key file for TLS --cluster string The name of the kubeconfig cluster to use --context string The name of the kubeconfig context to use -h, --help help for astrads --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure --kubeconfig string Path to the kubeconfig file to use for CLI requests. -n, --namespace string If present, the namespace scope for this CLI request --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") -s, --server string The address and port of the Kubernetes API server --token string Bearer token for authentication to the API server --user string The name of the kubeconfig user to use
-
명령에 대한 자세한 내용은 'astrads[command]--help’를 사용하십시오.
kubectl astrads asup collect --help
응답:
Collect the autosupport bundle by specifying the component to collect. It will default to manual event. Usage: astrads asup collect [flags] Examples: # Control plane collection kubectl astrads collect --component controlplane example1 # Storage collection for single node kubectl astrads collect --component storage --nodes node1 example2 # Storage collection for all nodes kubectl astrads collect --component storage --nodes all example3 # Collect but don't upload to support kubectl astrads collect --component controlplane --local example4 NOTE: --component storage and --nodes <name> are mutually inclusive. --component controlplane and --nodes <name> are mutually exclusive. Flags: -c, --component string Specify the component to collect: [storage , controlplane , vasaprovider, all] -d, --duration int Duration is the duration in hours from the startTime for collection of AutoSupport. This should be a positive integer -e, --event string Specify the callhome event to trigger. (default "manual") -f, --forceUpload Configure an AutoSupport to upload if it is in the compressed state and not uploading because it was created with the 'local' option or if automatic uploads of AutoSupports is disabled at the cluster level. -h, --help help for collect -l, --local Only collect and compress the autosupport bundle. Do not upload to support. Use 'download' to copy the collected bundle after it is in the 'compressed' state --nodes string Specify nodes to collect for storage component. (default "all") -t, --startTime string StartTime is the starting time for collection of AutoSupport. This should be in the ISO 8601 date time format. Example format accepted: 2021-01-01T15:20:25Z, 2021-01-01T15:20:25-05:00 -u, --usermessage string UserMessage is the additional message to include in the AutoSupport subject. (default "Manual event trigger from CLI")