Tony

@ltony1024

I am a ToNy

Joined on Dec 19, 2019

  • 使用 Charles 查看 Windwos Subsystem for Android 裝置如何處理 HTTP request & response。 Prerequisites Charles proxy Windows Subsystem for Android Android Debug Bridge(adb) Instructions 查詢本機 IP​​​ipconfig
     Like  Bookmark
  • Q: 在 General tab 填寫完連線資訊後,測試連線時顯示 [08S01] Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. mysql no appropriate protocol (protocol is disabled or cipher suites are inappropriate) A:
     Like  Bookmark
  • How to save a username & password in client app or local machine safely? Use OS-dependent credential management system or service. Windows Credential Manager API macOS Keychain API
     Like  Bookmark
  • Microsoft documentation ::: spoiler Runtime Runtime and SDK Version: .NET 6 ::: Middleware(中介軟體)是組合進應用程式 pipeline(管線),負責處理請求(request)和回覆(response)的軟體。每個元件(component)都能 選擇是否將請求交給下一個在 pipeline 內的元件。 能夠在 pipeline 中的下個元件執行之前和執行之後進行一些處理。
     Like  Bookmark
  • Kubernetes Intro Kubernetes(常簡稱為K8s)是用於自動部署、擴展和管理「容器化(containerized)應用程式」的開源系統。該系統由 Google 設計並捐贈給 Cloud Native Computing Foundation(今屬 Linux 基金會)來使用。 它旨在提供「跨主機集群的自動部署、擴展以及運行應用程式容器的平台」。它支持一系列容器工具,包括 Docker 等。 Kubernetes 概覽 應用程式演化 傳統部署時期:早期,應用程式執行於實體伺服器(physical server)上。此種方式無法為實體伺服器中的應用程式規定資源使用量,因此會導致資源分配問題。
     Like 1 Bookmark
  • Table of Contents [TOC] On-premises & Off-premises 定義 On-premises software On-premises software (also referred to, incorrectly, as on-premise, and alternatively abbreviated on-prem) is installed and runs on computers on the premises of the person or organization using the software,
     Like  Bookmark
  • Familiarity with volumes is suggested. Introduction Terminologies: Persistent Volume (PV):在 cluster 中已由管理員提供或使用 Storage Classes 動態提供的一部分的儲存(storage)。它是 cluster 內的資源就像是 node 是一種 cluster 資源一樣。PV 擁有獨立於使用該 PV 的 pod 的生命週期。 Persistent Volume Claim (PVC):使用者對於儲存的請求。類似於 pod 消耗 node 的資源,而 PVCs 消耗 PV 的資源。Pod 請求特定級別的資源(CPU 和記憶體)。Claims 可以請求特定大小和存取模式。 PersistentVolume 有以下幾種存取模式:
     Like  Bookmark
  • This documentation describes how to set up a connection from an application running in Google Kubernetes Engine to a Cloud SQL instance. Introduction 主要有兩種做法,你可以用 Cloud SQL Auth proxy (公開或私有 IP) 或使用私有 IP 直接連線。 即使你使用私有 IP 連線,搭配 Cloud SQL Auth proxy 也是較建議的做法。因為 Cloud SQL Auth proxy 提供強加密和使用 IAM 的身份驗證來保護資料庫的安全。 :::success 本篇採用第一種做法 :tada: :::
     Like  Bookmark
  • markdown.preview.linkify=false 起因 由於加入了 Cloud SQL Auth proxy,因此原本 ASP.NET Core 放在 appsettings.json 的連線字串需要更改,但每次更改都需要重新打包才能部署到 K8s 上著實不便,從權限管理或是資安角度來看也不合適。因此選擇使用 K8s Secret 將連線字串注入至環境變數才是較佳的做法。 前篇:Connect Cloud SQL from Kubernetes Engine 簡介 Source: Microsoft Documentation
     Like  Bookmark
  • Jenkins Intro Table of Contents [TOC] 基本流程圖 s=>start: 本地測試通過 e=>end: 收工 vc=>operation: 版本控制(commit or sign in)
     Like  Bookmark