본문 바로가기

전체 글97

zabbix graph Korean language is broken zabbix graph Korean language is broken # Zabbix default graph font ## zabbix 3.x version [root@ip-172-16-100-106 fonts]# ll /usr/share/zabbix/assets/fonts/ total 0 lrwxrwxrwx. 1 root root 33 Jul 30 11:32 graphfont.ttf -> /etc/alternatives/zabbix-web-font ## zabbix 5.2 version [root@bb4046033bc6 zabbix]# cd /usr/share/zabbix/assets/fonts/ [root@bb4046033bc6 fonts]# ls -al total 2988 drwxr-xr-x. 1.. 2023. 6. 17.
Restore from CloudSQL MSSQL backup data Restore from CloudSQL MSSQL backup data https://cloud.google.com/sql/docs/sqlserver/import-export/import-export-bak#import # Grant GCS permissions to the CloudSQL service account Check the service account for your CloudSQL instance gcloud sql instances describe premisan-test-mssql --project my-project | grep serviceAccountEmailAddress Add access to GCS bucket gcloud projects add-iam-policy-bindi.. 2023. 5. 12.
Restoring from a GCP CloudSQL MySQL snapshot Restoring from a GCP CloudSQL MySQL snapshot https://cloud.google.com/sql/docs/postgres/backup-recovery/restoring?hl=ko # Check backup id curl -X GET \ -H "Authorization: Bearer "$(gcloud auth print-access-token) \ "https://sqladmin.googleapis.com/v1/projects/my-project-a/instances/premisan-test/backupRuns" Output { "kind": "sql#backupRunsList", "items": [ { "kind": "sql#backupRun", "status": "S.. 2023. 5. 12.
Setting up a GCP CloudSQL maintenance window Setting up a GCP CloudSQL maintenance window Maintenance information for Cloud SQL instances https://cloud.google.com/sql/docs/mysql/maintenance?hl=ko Check and set maintenance windows https://cloud.google.com/sql/docs/mysql/set-maintenance-window?hl=ko Self-service maintenance https://cloud.google.com/sql/docs/mysql/self-service-maintenance?hl=ko (memorystore redis) maintenance policy https://c.. 2023. 5. 12.
Create GCP Internal TCP Proxy LB Create GCP Internal TCP Proxy LB -> Currently, it can only be created through the gcloud CLI, not in the GCP console. https://cloud.google.com/load-balancing/docs/tcp/set-up-int-tcp-proxy-zonal#configure-the-load-balancer https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/compute_forwarding_rule # Create a subnet dedicated to regional proxy Migrate an existing ht.. 2023. 5. 12.
gcsfuse gcsfuse -> Utility to mount gcs like a file system https://github.com/GoogleCloudPlatform/gcsfuse/ # installation https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/installing.md ## centos sudo tee /etc/yum.repos.d/gcsfuse.repo > /dev/null Modify Instance -> Manage API and Identity -> Cloud API Access Scope -> Storage -> Change to Full # use # mount gcsfuse premisan-test-bucket-123 .. 2023. 5. 12.
GCS(Google Cloud Storage) GCS(Google Cloud Storage) # google cloud storage -> Same as s3 in aws # Bucket storage class and s3 storage class Standard - Standard Nearline - Standard-Infrequent Access Coldline - One Zone-Infrequent Access Archive - Glacier # gsutil -> cli command for google cloud storage -> Installed together with cloud SDK installation # Command example Check bucket list gsutil list Check the object list i.. 2023. 5. 12.
Cloud Functions 에서 VPC 내부 리소스 접근 Cloud Functions 에서 VPC 내부 리소스 접근 작동 방식 https://cloud.google.com/vpc/docs/serverless-vpc-access?hl=ko 가이드 - 공유 VPC 네트워크에 연결 - 구성 방법 비교 https://cloud.google.com/functions/docs/networking/connecting-shared-vpc?hl=ko#comparison_of_configuration_methods 가이드 - 공유 VPC 호스트 프로젝트에서 커넥터 구성 https://cloud.google.com/functions/docs/networking/shared-vpc-host-project?hl=ko 1. 호스트 프로젝트에 서버리스 vpc 커넥터 생성 gcloud 업.. 2023. 5. 12.
GCE Alias IP address GCE Alias IP address # GCE 인스턴스에 네트워크 인터페이스 추가 가능 -> 추가된 네트워크 인터페이스는 반드시 기존 네트워크 인터페이스와 다른 vpc 네트워크에 할당해야함 # GCE 인스턴스 네트워크 인터페이스에 alias 아이피 범위(추가 아이피) 추가 가능 -> 기존 네트워크 인터페이스와 같은 네트워크의 아이피를 할당하고 싶다면 인터페이스를 추가하지 않고, 기존 인터페이스에 alias 아이피 범위를 추가 가능 ## 방화벽 설정 시 주의할 점 -> 소스 태그 = 인터페이스의 기본 아이피만 적용됨 -> 대상 태그 = 인터페이스의 모든 아이피(기본, 별칭)가 적용됨 방화벽 가이드 https://cloud.google.com/vpc/docs/alias-ip?hl=ko#firewalls -.. 2023. 5. 6.