Tag Archives: google cloud

在 Linux 虚拟机上格式化和装载非启动磁盘

如果您将新的空白磁盘挂接到虚拟机,则必须先格式化并装载磁盘,然后才能使用磁盘。如果挂接的磁盘已包含数据,则必须先装载该磁盘,然后才能使用它。 准备工作 连接到虚拟机 在 Linux... Read More | Share it now!

Start/Stop Compute Engine Instance from Cloud function

https://medium.com/google-cloud/start-stop-compute-engine-instance-from-cloud-function-bf9ae5199609 I design a web service that will running on Google Compute Engine to do some long-time data processing task. The data will be stored at Cloud Storage... Read More | Share it now!

Google Cloud Registry (GCR) with external Kubernetes

For information about how to pull from other private registries, see the following topics: Docker Hub private repository with Kubernetes Amazon EC2 Container Registry (ECR) with Kubernetes If you run Kubernetes on Google Cloud Platform (GCP), Google... Read More | Share it now!

GCR(Container Registry) Authentication methods

https://cloud.google.com/container-registry/docs/advanced-authentication To authenticate to Container Registry, you should use gcloud as a Docker credential helper as described below. This page also describes advanced... Read More | Share it now!

Push docker image to GCR for kubernetes 推送和拉取映像

本页面介绍如何推送和拉取映像,这是使用 Container Registry 时的两项最常见任务。要将新映像推送到 Container Registry,您首先需要使用注册表名称来标记该映像,如下所述。 要开始使用 Container... Read More | Share it now!

Unable to connect to the server: x509: certificate signed by unknown authority

https://github.com/kubernetes/kops/issues/964 Did some digging around and found that it is because of self signed certificates. This can be solved by adding to every kubectl command or (the preferred way) adding: to the kube-apiserver startup shell... Read More | Share it now!

Creating gCloud instance with Terraform

main.tf // Create a new instance resource "google_compute_instance" "default" { name = "${var.cluster-name}" machine_type = "${var.machine-type}" zone = "${var.gcloud-zone}" boot_disk { initialize_params { ... Read More | Share it now!

java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.()V

java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.()V from class org.apache.hadoop.mapred.FileInputFormat at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:312) at... Read More | Share it now!