-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
84 lines (42 loc) · 2.04 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# using docker to google access
# 2020.07.31
ref: https://github.com/swgu931/google-gcp-basics
google/cloud-sdk latest 2bd84e1eea3c 3 weeks ago 2.04GB
docker run -it --rm -v ~/cloud-workspace/google-gcp-access:/shared:rw google/cloud-sdk:latest /bin/bash
# login
gcloud auth login
gcloud projects listi
gcloud projects cheet-sheet
gcloud compute instances list
# project create
gcloud projects create ${PROJECT_ID} --set-as-default
: not working well so access to web site and create in the site.
# GKE cluster create
gcloud config set project ${PROJECT_ID} # GCRP-test-prject in lggusewan@googlemail.com
gcloud config set compute/zone asia-northeast3 # Seoul region
gcloud container clusters create swever-cloud --project=${PROJECT_ID} --cluster-version=1.15.12-gke.2 \
--machine-type=n1-standard-1 \
--num-nodes=3 \
--subnetwork=default
# to delete projects
```
gcloud endpoints services delete map.endpoints.second-base-252206.cloud.goog --project=second-base-252206
gcloud endpoints services delete www.endpoints.second-base-252206.cloud.goog --project=second-base-252206
gcloud projects delete second-base-252206
You can undo this operation for a limited period by running the command below.
$ gcloud projects undelete second-base-252206
```
==> quota 문제로 에러 발생
```
gcloud compute project-info describe --project ${PROJECT_ID}
```
*cpus, In-use IP addresses 의 quota 조정
gcloud container clusters describe swever-cloud
# gcloud로 클러스터를 제어할 수 있도록 kubectl 인증정보를 설정
gcloud container clusters get-credentials swever-cloud
==> 확인: kubectl get nodes
# 웹 브라우저 대시보드에서 확인할 수 있도록...
kubectl apply -f https://raw.githubusercontent.com/kubetm/kubetm.github.io/master/sample/practice/appendix/gcp-kubernetes-dashboard.yaml
kubectl proxy --port=8001
: access to
http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default