At most one access config currently supported.

1 개요[ | ]

ERROR: (gcloud.compute.instances.add-access-config) Could not fetch resource:
At most one access config currently supported.
  • 예전에는 add-access-config 명령어로 IP를 할당할 수 있었는데, 언젠가 변경되어서 그전에 delete-access-config 명령어를 수행해야 한다.
# gcloud compute instances add-access-config vm1 --access-config-name="external-nat" --address=135.79.246.80 --zone=asia-northeast3-b
ERROR: (gcloud.compute.instances.add-access-config) Could not fetch resource:
 - At most one access config currently supported.
# gcloud compute instances add-access-config vm1 --access-config-name="External NAT" --address=135.79.246.80 --zone=asia-northeast3-b
ERROR: (gcloud.compute.instances.add-access-config) Could not fetch resource:
 - At most one access config currently supported.
# gcloud version
Google Cloud SDK 382.0.0
bq 2.0.74
core 2022.04.15
gsutil 5.9

# gcloud compute addresses list
NAME            ADDRESS/RANGE  TYPE      PURPOSE  NETWORK  REGION           SUBNET  STATUS
my-service-ip1  135.79.246.80  EXTERNAL                    asia-northeast3          RESERVED
my-service-ip2  135.79.222.33  EXTERNAL                    asia-northeast3          IN_USE
# gcloud compute instances describe vm1 --zone=asia-northeast3-b | grep accessConfigs -A3
- accessConfigs:
  - kind: compute#accessConfig
    name: External NAT
    natIP: 34.56.79.100
# gcloud compute instances delete-access-config vm1 --access-config-name='External NAT' --zone=asia-northeast3-b
Updated [https://www.googleapis.com/compute/v1/projects/ultra-project-123/zones/asia-northeast3-b/instances/vm1].
# gcloud compute instances add-access-config vm1 --address=135.79.246.80 --access-config-name="External NAT" --zone=asia-northeast3-b
Updated [https://www.googleapis.com/compute/v1/projects/ultra-project-123/zones/asia-northeast3-b/instances/gke-cluster1-spot1-5010aa03-90nk].
# gcloud compute addresses list
NAME            ADDRESS/RANGE  TYPE      PURPOSE  NETWORK  REGION           SUBNET  STATUS
my-service-ip1  135.79.246.80  EXTERNAL                    asia-northeast3          IN_USE
my-service-ip2  135.79.222.33  EXTERNAL                    asia-northeast3          IN_USE

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}