"At most one access config currently supported."의 두 판 사이의 차이

24번째 줄: 24번째 줄:
NAME            ADDRESS/RANGE  TYPE      PURPOSE  NETWORK  REGION          SUBNET  STATUS
NAME            ADDRESS/RANGE  TYPE      PURPOSE  NETWORK  REGION          SUBNET  STATUS
my-service-ip1  135.79.246.80  EXTERNAL                    asia-northeast3          RESERVED
my-service-ip1  135.79.246.80  EXTERNAL                    asia-northeast3          RESERVED
my-service-ip2  135.79.246.81  EXTERNAL                    asia-northeast3          RESERVED
my-service-ip2  135.79.222.33 EXTERNAL                    asia-northeast3          IN_USE
my-service-ip3  135.79.246.82 EXTERNAL                    asia-northeast3          IN_USE
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
33번째 줄: 32번째 줄:
     name: External NAT
     name: External NAT
     natIP: 34.56.79.100
     natIP: 34.56.79.100
</syntaxhighlight>
<syntaxhighlight lang='console'>
# 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].
</syntaxhighlight>
<syntaxhighlight lang='console'>
# 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].
</syntaxhighlight>
<syntaxhighlight lang='console'>
# 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
</syntaxhighlight>
</syntaxhighlight>



2022년 4월 23일 (토) 19:07 판

1 개요

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 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 }}