<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cloud on pistocop</title><link>https://www.pistocop.dev/tags/cloud/</link><description>Recent content in Cloud on pistocop</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 26 Nov 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.pistocop.dev/tags/cloud/index.xml" rel="self" type="application/rss+xml"/><item><title>🌉 Connecting GCP Dataproc and Elasticsearch: Bridging the Worlds of Big Data and (vector) Search</title><link>https://www.pistocop.dev/posts/elasticsearch_spark_connector/</link><pubDate>Sun, 26 Nov 2023 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/elasticsearch_spark_connector/</guid><description>&lt;blockquote&gt;
&lt;p&gt;🧭 Install the official Elasticsearch Spark connector on Dataproc adapting one of the official &lt;em&gt;&lt;a href="https://github.com/GoogleCloudDataproc/initialization-actions" class="external-link" target="_blank" rel="noopener"&gt;initialization-actions&lt;/a&gt;&lt;/em&gt; scripts, then test multiple architectures to index 1 Million vectors in less than 20 minutes&lt;/p&gt;
&lt;p&gt;🔗 Repo: &lt;a href="https://github.com/pistocop/elasticsearch-spark-connector/tree/main" class="external-link" target="_blank" rel="noopener"&gt;elasticsearch-spark-connector&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-intro" &gt;✨ Intro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-components" &gt;🍣 Components&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#dataproc" &gt;Dataproc&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch" &gt;Elasticsearch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#spark-connector" &gt;Spark Connector&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-deploy" &gt;🏗️ Deploy&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#elasticsearch-cluster" &gt;Elasticsearch Cluster&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch-index" &gt;Elasticsearch Index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch-exposition---architecture-1" &gt;Elasticsearch exposition - architecture 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch---exposition-architecture-2" &gt;Elasticsearch - exposition architecture 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#spark-connector" &gt;Spark Connector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#dataproc" &gt;Dataproc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-usage" &gt;🔨 Usage&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-test-the-knn-search" &gt;📝 Test the KNN search&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#performances-of-_elasticsearch-architecture-1_" &gt;Performances of &lt;em&gt;Elasticsearch Architecture 1:&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#performances-of-_elasticsearch-architecture-2_" &gt;Performances of &lt;em&gt;Elasticsearch Architecture 2:&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-conclusion" &gt;🚀 Conclusion&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-faq" &gt;⁉️ FAQ&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-references" &gt;🔗 References&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;</description></item><item><title>🛠️ A gentle introduction to GKE private cluster deployment</title><link>https://www.pistocop.dev/posts/gke_gentle_introduction/</link><pubDate>Sat, 25 Feb 2023 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/gke_gentle_introduction/</guid><description>&lt;blockquote&gt;
&lt;p&gt;🧭  Study how to deploy GKE private cluster using terraform and expose an echo server&lt;br&gt;
🔗 Repo: &lt;a href="https://github.com/pistocop/gke-basic-cluster-deployment" class="external-link" target="_blank" rel="noopener"&gt;gke-basic-cluster-deployment&lt;/a&gt;&lt;br&gt;
🔗 Article posted on medium for &lt;a href="https://medium.com/google-cloud/%EF%B8%8F-a-gentle-introduction-to-gke-private-cluster-deployment-157e8776f0e0" class="external-link" target="_blank" rel="noopener"&gt;Google Cloud&lt;/a&gt; also&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;📧 Found an error or have a question? &lt;a href="https://www.pistocop.dev/" class="external-link" target="_blank" rel="noopener"&gt;write to me&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-intro" &gt;📢 Intro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-deploy" &gt;🚀 Deploy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-architecture" &gt;🏗️ Architecture&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#terraform" &gt;Terraform&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#gke" &gt;GKE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#network" &gt;Network&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-tips-and-takeaways" &gt;🥪 Tips and Takeaways&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-resources" &gt;🔗 Resources&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;
&lt;hr&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://www.pistocop.dev/images/pistocop.dev-images/12_gentle_introduction_gke/2.webp"
 alt="My last mountain trekking"&gt;
&lt;/figure&gt;

&lt;h2 id="-intro"&gt;
 📢 Intro
 &lt;a class="heading-link" href="#-intro"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Kubernetes (&lt;a href="https://www.pistocop.dev/images/pistocop.dev-images/12_gentle_introduction_gke/k8s-shortcut.webp" &gt;k8s&lt;/a&gt;), although don’t require my introduction, is the most famous and widely adopted container manager in the world. Hosting by yourself is undoubtedly a very advanced and expert topic, so the major of companies choose a provider that provides it as managed service.&lt;/p&gt;</description></item><item><title>🛠️ Deploy Elasticsearch 8.5 on Kubernetes with Okteto</title><link>https://www.pistocop.dev/posts/deploy_es_on_okteto/</link><pubDate>Tue, 15 Nov 2022 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/deploy_es_on_okteto/</guid><description>&lt;blockquote&gt;
&lt;p&gt;🧭 Guide to deploy Elasticsearch 8.5 cluster on Okteto Cloud,&lt;br&gt;
for free and with basic security settings.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;🔗 Repo: &lt;a href="https://github.com/pistocop/okteto-elasticsearch" class="external-link" target="_blank" rel="noopener"&gt;okteto-elasticsearch&lt;/a&gt;&lt;br&gt;
📧 Found an error or have a question? &lt;a href="https://www.pistocop.dev" class="external-link" target="_blank" rel="noopener"&gt;write to me&lt;/a&gt; or leave a comment&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-intro" &gt;📢 Intro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-features" &gt;✨ Features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-steps" &gt;🚀 Steps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-notes" &gt;✍️ Notes&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-how-to" &gt;🔧 How to&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-okteto" &gt;⚒️ Okteto&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-disclaimer" &gt;🛂 Disclaimer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-todos" &gt;💤 TODOs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;
&lt;hr&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://www.pistocop.dev/images/pistocop.dev-images/10_deploy_es_on_okteto/IMGP0408.webp"
 alt="A cloud in the sky"&gt;
&lt;/figure&gt;

&lt;h1 id="-intro"&gt;
 📢 Intro
 &lt;a class="heading-link" href="#-intro"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Elasticsearch (ES) is probably the most common and famous search engine and has introduced a lot of new features with the 8.0 release, like the dense vector field type and the kNN search, that both combined allow Elasticsearch to be used for vector search for many machine-learning applications.&lt;/p&gt;</description></item><item><title>✒️ Google Associate Cloud Engineer notes</title><link>https://www.pistocop.dev/posts/ace_google_exam_notes/</link><pubDate>Mon, 31 May 2021 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/ace_google_exam_notes/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Personal notes used as a general recap before the &lt;a href="https://cloud.google.com/certification/cloud-engineer" class="external-link" target="_blank" rel="noopener"&gt;Associate Cloud Engineer&lt;/a&gt; exam&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;🏅 Exam recently &lt;a href="https://www.credential.net/3348b2dc-6c06-4e9b-8833-4c3c1e5d6787?key=1362bdf90e2d0d5ad4672fbb2108efdbc34a6260ec9006e9a0173f4aa141b365" class="external-link" target="_blank" rel="noopener"&gt;successfully passed&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;⭐ Important concepts are marked with a star&lt;br&gt;
🔗 In most cases the original source is linked&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;The following are my personal notes, so I assume no responsibility or liability for any errors or omissions in the content&lt;br&gt;
❓ found an error or have a question? &lt;a href="https://www.pistocop.dev" class="external-link" target="_blank" rel="noopener"&gt;write to me&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="-index"&gt;
 🗂 Index
 &lt;a class="heading-link" href="#-index"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-index" &gt;🗂 Index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-glossary" &gt;📕 Glossary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-gcloud-basics" &gt;🔢 Gcloud Basics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-network" &gt;🌐 Network&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#virtual-private-clouds" &gt;Virtual Private Clouds&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#quotas" &gt;Quotas&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#cloud-interconnect" &gt;Cloud Interconnect&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#load-balancer" &gt;Load balancer&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#choose-the-load-balancer" &gt;Choose the Load Balancer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#firewall" &gt;Firewall&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#cloud-armor" &gt;Cloud Armor&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-storage" &gt;🎒 Storage&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#storage-types" &gt;Storage Types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#gcp-storage-services" &gt;GCP storage services&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-compute-services" &gt;🧠 Compute services&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#compute-engine-vm" &gt;&lt;strong&gt;Compute engine (VM)&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#gke---google-kubernetes-engine" &gt;&lt;strong&gt;GKE - Google Kubernetes Engine&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#cloud-run" &gt;&lt;strong&gt;Cloud Run&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#app-engine" &gt;&lt;strong&gt;App Engine&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#cloud-functions" &gt;&lt;strong&gt;Cloud functions&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#cloud-endpoints" &gt;&lt;strong&gt;Cloud endpoints&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#cloud-tasks" &gt;Cloud Tasks&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-gke---google-kubernetes-engine" &gt;☸️ GKE - Google Kubernetes Engine&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-iam" &gt;🔐 IAM&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#hierarchy" &gt;Hierarchy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-projects" &gt;🏭 Projects&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-stackdriver" &gt;💬 Stackdriver&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#quotas-1" &gt;Quotas&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-cloud-source-repositories" &gt;🖱️ Cloud Source Repositories&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-billing" &gt;💸 Billing&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#pricing-calculation" &gt;Pricing calculation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#billing-monitor" &gt;Billing monitor&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-cloud-deployment-manager" &gt;🏗️ Cloud Deployment Manager&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-identity-aware-proxy" &gt;🛂 Identity-Aware Proxy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-cloud-logging" &gt;📋 Cloud Logging&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-resources" &gt;🖇️ Resources&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h1 id="-glossary"&gt;
 📕 Glossary
 &lt;a class="heading-link" href="#-glossary"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Multi-Tier Application
&lt;ul&gt;
&lt;li&gt;In software engineering, multitier architecture (often referred to as n-tier architecture) or multilayered architecture is a client–server architecture in which presentation, application processing and data management functions are &lt;strong&gt;physically separated&lt;/strong&gt;. - &lt;a href="https://en.wikipedia.org/wiki/Multitier_architecture" class="external-link" target="_blank" rel="noopener"&gt;wik&lt;/a&gt;i&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Zone vs Regional
&lt;ul&gt;
&lt;li&gt;Regions are composed by zones (e.g. Region us-west1 is composed by zones us-west1-[a,b,c])- &lt;a href="https://cloud.google.com/compute/docs/regions-zones" class="external-link" target="_blank" rel="noopener"&gt;docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;All regions are at least 100 miles apart. - &lt;a href="https://cloud.google.com/storage/docs/locations#location-r" class="external-link" target="_blank" rel="noopener"&gt;doc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;db transactional**:** do all the jobs or nothing (have roolback)&lt;/li&gt;
&lt;li&gt;OLAP vs OLTP - &lt;a href="https://bitalksbi.com/oltp-vs-olap-database-vs-data-warehouse" class="external-link" target="_blank" rel="noopener"&gt;article&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;OLTP: OnLine Transaction Process (&lt;em&gt;Database)&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;Purpose of an OLTP system is to handle data&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;OLAP: Online Analytical Processing (&lt;em&gt;Data Warehouse&lt;/em&gt;)
&lt;ul&gt;
&lt;li&gt;Used for analysing the data&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Gcloud
&lt;ul&gt;
&lt;li&gt;manage Google Cloud Platform resources and developer workflow - &lt;a href="https://cloud.google.com/sdk/gcloud/reference" class="external-link" target="_blank" rel="noopener"&gt;doc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Network address translation &lt;strong&gt;(NAT)&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;mapping an IP address space into another - &lt;a href="https://en.wikipedia.org/wiki/Network_address_translation" class="external-link" target="_blank" rel="noopener"&gt;wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;used to map private IP (192.168.x.x) to external-public IP&lt;/li&gt;
&lt;li&gt;how a NAT can manage multiple connections from devices inside the network, using the same external IP? (that is: how the NAT can forward the received packages?)
&lt;ul&gt;
&lt;li&gt;Each package have IP:port of the sender, NAT replace this with custom &lt;em&gt;port&lt;/em&gt; linked with the internal device ip - &lt;a href="https://www.reddit.com/r/explainlikeimfive/comments/1wqc30/eli5_how_does_nat_network_address_translation_work/" class="external-link" target="_blank" rel="noopener"&gt;reddit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Proxy&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;client directs the request to the proxy server, which evaluates the request and performs the required network transactions - &lt;a href="https://en.wikipedia.org/wiki/Proxy_server" class="external-link" target="_blank" rel="noopener"&gt;wiki&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;In computer networks, a proxy is a middleman you&amp;rsquo;ve assigned to send and receive messages for you.&amp;rdquo; - &lt;a href="https://www.reddit.com/r/explainlikeimfive/comments/yhyzv/eli5_what_is_a_proxy_how_do_i_get_one_and_why_do/" class="external-link" target="_blank" rel="noopener"&gt;reddit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Proxy vs nat&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;NAT works at the network layer while proxy at the application layer.&amp;rdquo; - &lt;a href="https://support.huawei.com/enterprise/en/knowledge/KB1000081311/" class="external-link" target="_blank" rel="noopener"&gt;huawei&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;NAT is transparent to various applications&lt;/li&gt;
&lt;li&gt;proxy must resort to the IP address of the proxy server specified in application programs&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Global resources - &lt;a href="https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources#globalresources" class="external-link" target="_blank" rel="noopener"&gt;doc&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;GCP resources accessible by any resource in any zone within the same project.&lt;/li&gt;
&lt;li&gt;⭐ Some global resources:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Images&lt;/strong&gt;: used by any instance or disk resource in the same project as the image&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Snapshots&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;VPC network&lt;/li&gt;
&lt;li&gt;Routes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Google Front End Service - &lt;a href="https://cloud.google.com/security/infrastructure/design#google_front_end_service" class="external-link" target="_blank" rel="noopener"&gt;doc&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;When a service wants to make itself available on the Internet, it can register itself with an infrastructure service called the Google Front End (GFE)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="-gcloud-basics"&gt;
 🔢 Gcloud Basics
 &lt;a class="heading-link" href="#-gcloud-basics"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Init of the tool&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud init
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Gcloud structure&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ gcloud compute instances list
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# |------base--| |--who--| |-what-|&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ gcloud components install kubectl &lt;span style="color:#75715e"&gt;# exception&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# |------base-----| |-what-| |-who-|&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Set the project&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud config set project PROJECT-NAME
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Bucket Versioning (NB: is gsutil)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gsutil versioning set &lt;span style="color:#f92672"&gt;(&lt;/span&gt;on|off&lt;span style="color:#f92672"&gt;)&lt;/span&gt; gs://&amp;lt;bucket_name&amp;gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gsutil versioning get gs://&amp;lt;bucket_name&amp;gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# List VM&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud compute instances list &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--zones&lt;span style="color:#f92672"&gt;]&lt;/span&gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--format json&lt;span style="color:#f92672"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Create VM with boot disk&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud compute instances create VM_NAME &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ae81ff"&gt;&lt;/span&gt; --source-snapshot&lt;span style="color:#f92672"&gt;=&lt;/span&gt;BOOT_SNAPSHOT_NAME &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ae81ff"&gt;&lt;/span&gt; --boot-disk-size&lt;span style="color:#f92672"&gt;=&lt;/span&gt;BOOT_DISK_SIZE &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ae81ff"&gt;&lt;/span&gt; --boot-disk-type&lt;span style="color:#f92672"&gt;=&lt;/span&gt;BOOT_DISK_TYPE &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ae81ff"&gt;&lt;/span&gt; --boot-disk-device-name&lt;span style="color:#f92672"&gt;=&lt;/span&gt;BOOT_DISK_NAME
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Install components (e.g. kubectl, minikube, kustomize, bq)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud components list
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud components install PRODUCT
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Set a default Region&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud config set compute/region europe-west1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Create Compute Engine persistent disks&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud compute disks create my-disk-1 my-disk-2 --zone&lt;span style="color:#f92672"&gt;=&lt;/span&gt;us-east1-a
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Resize a cluster nodes&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud container clusters resize sample-cluster --num-nodes&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Add IAM policy binding&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud projects add-iam-policy-binding example-project-id-1 --member&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#39;user:test-user@gmail.com&amp;#39;&lt;/span&gt; --role&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#39;roles/editor&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Delete `default` VPC (NB: start with &amp;#39;compute&amp;#39;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud compute networks delete defaulta
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Create VPC&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud compute networks create
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# gcloud Wide Flags&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--account &lt;span style="color:#75715e"&gt;# GCP user account to use for invocation&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--project &lt;span style="color:#75715e"&gt;# The Google Cloud Platform project ID to use for this invocation&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--billing-project &lt;span style="color:#75715e"&gt;# project that will be charged quota for operations performed&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--configuration &lt;span style="color:#75715e"&gt;# The configuration to use for this command invocation&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--flags-file &lt;span style="color:#75715e"&gt;# A YAML or JSON file that specifies a --flag:value dictionary&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--flatten &lt;span style="color:#75715e"&gt;# Use to &amp;#34;flatten&amp;#34; resources list&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--format &lt;span style="color:#75715e"&gt;# Set the format for printing command output resources&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--log-http &lt;span style="color:#75715e"&gt;# Log all HTTP server requests and responses to stderr&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--trace-token &lt;span style="color:#75715e"&gt;# Token used to route traces of service requests for investigation of issues&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--verbosity
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--quiet
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--impersonate-service-account
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# List VPC networks&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud compute networks list
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# List existing clusters for running containers&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud container clusters list
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Describe cluster image info (NB: is gcloud not kubectl)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gcloud container images describe gcr.io/myproject/myimage:tag
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id="-network"&gt;
 🌐 Network
 &lt;a class="heading-link" href="#-network"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;h2 id="virtual-private-clouds"&gt;
 Virtual Private Clouds
 &lt;a class="heading-link" href="#virtual-private-clouds"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A Virtual Private Cloud (VPC) network is a virtual version of a physical network, implemented inside of Google&amp;rsquo;s production network, using Andromeda.&lt;/p&gt;</description></item><item><title>📽️ Transcribe video lessons</title><link>https://www.pistocop.dev/posts/lessons2text/</link><pubDate>Sat, 09 Jan 2021 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/lessons2text/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Starting from mp4 video, extract audio and transcribe the audio to text files using Google APIs&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="intro"&gt;
 Intro
 &lt;a class="heading-link" href="#intro"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;In this tutorial, we will see how to get the audio transcriptions (text files) from a batch of mp4 videos.&lt;br&gt;
The aim is to help students to get the transcript from teachers online courses, using one of the best black box ML technique &lt;em&gt;Google Speech to text API&lt;/em&gt;.&lt;br&gt;
&lt;strong&gt;Note&lt;/strong&gt;: maybe a better solution for speech to text exist for English, but the example here is from Italian lessons.&lt;/p&gt;</description></item></channel></rss>