-->

whaust

2022年11月28日 星期一

20221128

 # traefik github 

  https://github.com/traefik/traefik

# 安裝 traefik

  https://jimmysong.io/kubernetes-handbook/practice/traefik-ingress-installation.html

  https://github.com/rootsongjc/kubernetes-handbook/tree/master/manifests/traefik-ingress

  https://github.com/yiyu0x/k8s-traefik-example

# kubernetes二: kubernetes 重要组件安装和集群管理

  https://blog.51cto.com/u_14183032/4903615

# [Kubernetes] 設定 Ingress Controller (以 Traefik 為例)

  https://godleon.github.io/blog/Kubernetes/k8s-Install-traefik-as-Ingress-Controller/

# k8s Deployment

  https://kubernetes.io/docs/concepts/workloads/controllers/deployment/

# [Day16] k8s之PV小整合:Pod、Deployment、Service、Job與PersistentVolume

  https://ithelp.ithome.com.tw/articles/10223217

# [Day 8] 還在用Replication Controller嗎?不妨考慮Deployment

  https://ithelp.ithome.com.tw/articles/10194152

# Elastic Docs› Elastic Cloud on Kubernetes [2.5]

  https://www.elastic.co/guide/en/cloud-on-k8s/2.5/k8s-overview.html

# Ingress Controllers

  https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/

# 第 3 堂課 - LACP 與 bonding/team 及 IPv6 簡易設定

  https://dic.vbird.tw/linux_server/unit03.php

# NPIV

  https://www.google.com/search?q=NPIV&oq=NPIV&aqs=chrome..69i57j0i512l9.824j0j7&sourceid=chrome&ie=UTF-8

# Rancher 新用户指南

  https://docs.ranchermanager.rancher.io/zh/pages-for-subheaders/new-user-guides

  https://docs.ranchermanager.rancher.io/v2.6/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli

# Kubernetes Cluster in Minutes in VMware vSphere using Rancher

  https://www.youtube.com/watch?v=lKzkgmR6A2A

# Rancher 安裝 trident  

  https://docs.netapp.com/zh-tw/hci/docs/task_rancher_trident.html

# Install Traefik

  https://doc.traefik.io/traefik/getting-started/install-traefik/#use-the-official-docker-image

# Kubernetes StatefulSet - Examples & Best Practices

  https://loft.sh/blog/kubernetes-statefulset-examples-and-best-practices/

# Kubernetes PVC Guide: Basics, Tutorials and Troubleshooting Tips

  https://komodor.com/learn/kubernetes-pvc-guide-basic-tutorial-and-troubleshooting-tips/

# Persistent Volumes

  https://kubernetes.io/docs/concepts/storage/persistent-volumes/

# How to Create kubernetes Role for Service Account

  https://devopscube.com/create-kubernetes-role/

# Kubernetes StatefulSet - Examples & Best Practices

  https://loft.sh/blog/kubernetes-statefulset-examples-and-best-practices/

# 在 K8S 中使用 Traefik 作為 Ingress Controllers

  https://github.com/yiyu0x/k8s-traefik-example

# Deploy a Production Ready Kubernetes Cluster

  https://github.com/kubernetes-sigs/kubespray/blob/master/README.md

# 以 eBPF 構建一個更為堅韌的 Kubernetes 叢集

  https://www.slideshare.net/hongweiqiu/ebpf-kubernetes?from_action=save

# “源来如此”开源技术公开课第八期:CKA考前重点实战讲解

  https://training.linuxfoundation.cn/videos/11

  https://www.bilibili.com/video/BV1Mq4y1s7JW/?zw

# Storage Classes

  https://kubernetes.io/docs/concepts/storage/storage-classes/

# Deploy Elasticsearch and Kibana Cluster on Kubernetes with Elasticsearch Operator

  https://medium.com/rahasak/deploy-elasticsearch-and-kibana-cluster-on-kubernetes-with-elasticsearch-operator-79f205170f40

# Elastic Cloud on Kubernetes

  https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-check-samples.html

  https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-install-yaml-manifests.html#k8s-install-yaml-manifests

# EtherChannel

  https://www.jannet.hk/etherchannel-pagp-lacp-zh-hant/

# Persistent Volumes

  https://kubernetes.io/docs/concepts/storage/persistent-volumes/

  https://learning.edx.org/course/course-v1:LinuxFoundationX+LFS158x+1T2022/block-v1:LinuxFoundationX+LFS158x+1T2022+type@sequential+block@c62bc66c97f24fa490cf42b58abc455b/block-v1:LinuxFoundationX+LFS158x+1T2022+type@vertical+block@a5d8e4c381e549de95762f5abe314ba6

  

  

# 雲端現代化的商業價值

https://hktw-resources.awscloud.com/whitepapers/business-value-of-cloud-modernization-whitepaper-tc?trk=9bbff2ce-cad2-4816-8c15-2f30d784b934&sc_channel=psm&fbclid=IwAR3h-qesiPcy0rLYnt9Fac-CFQXSey50_pvclVX8iwQlDKUyyPoqGJvJY5Y

# Setting up Azure Classroom Labs for your students with Azure Lab Services

https://techcommunity.microsoft.com/t5/educator-developer-blog/setting-up-azure-classroom-labs-for-your-students-with-azure-lab/ba-p/381181

# BAS那点事儿

https://xz.aliyun.com/t/11880#toc-6



# OpenRan

  https://opennetworking.org/open-ran/

# Aether-in-a-Box for Developers

  https://docs.aetherproject.org/master/developer/aiab.html#proxy-settings-conditional

# Setting Up Aether-in-a-Box

  https://docs.aetherproject.org/aether-1.5/developer/aiab.html

# Aether Documentation

  https://docs.aetherproject.org/master/index.html

# Aether

  https://opennetworking.org/aether/

# Community

  https://wiki.opennetworking.org/display/COM/Aether

# SD-Core Public

  https://drive.google.com/drive/u/0/folders/1dM5b0B65LkQQ0dGK1m-iIceRJfAASEm1  

# 遠傳首發!成功測試高空無人載具延伸 5G 信號涵蓋

  https://technews.tw/2019/09/23/fetnet-test-air-extension-5g-coverage/


[Trouble Shooting]

# Kubernetes stuck on ContainerCreating

  https://serverfault.com/questions/728727/kubernetes-stuck-on-containercreating

# Docker installation

  https://docs.docker.com/engine/install/centos/

# Run a Stateless Application Using a Deployment

  https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/

# What is the proper way to uninstall and clean up the Traefik Helm Charts?

  https://community.traefik.io/t/what-is-the-proper-way-to-uninstall-and-clean-up-the-traefik-helm-charts/11343


零信任ABCDE原則 (ABCDE Principles)


* Assume nothing(不做任何假定) 


* Believe nobody(不相信任何人) 

* Check everything(隨時檢查一切)

* Defeat dynamic risks(防範動態威脅)

* Expect for the worst(做最壞打算)



2022年11月15日 星期二

Readiness probe failed: HTTP probe failed with statuscode: 500 [metrics server on k8s]

 

Deploy metrics server

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

Edit metrics server deployment by adding command

kubectl -n kube-system edit deploy metrics-server

kubernetes-metrics-server.yaml


      containers:
      - args:
        - --cert-dir=/tmp
        - --secure-port=4443
        - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
        - --kubelet-use-node-status-port
        - --metric-resolution=15s
        command:
        - /metrics-server
        - --kubelet-insecure-tls
        - --kubelet-preferred-address-types=InternalIP



Add red parts, then ....




2022年11月7日 星期一

2022 交大籃球賽行程

主場球隊穿淺色 客場球隊穿深色

11/9

主場 客場 比賽場地 比賽時間 裁判紀錄台

管科 光電 F 18:00-19:00 資工 生科

資工 生科 F 19:00-20:00 管科 光電

土木 奈米 F 20:00-21:00 電物 應化

電物 應化 F 21:00~22:00 奈米 土木

運管 機械 G 18:00-19:00 應數 竹友

電機A 院籃 G 19:00-20:00 運管 機械

應數 竹友 G 20:00-21:00 電機A 院籃

電機B 輪休

11/16

主場 客場 比賽場地 比賽時間 裁判紀錄台

應數 應化 F 18:00-19:00 運管 奈米

運管 奈米 F 19:00-20:00 應數 應化

電機A 竹友 F 20:00-21:00 電機B 機械

電機B 機械 F 21:00~22:00 電機A 竹友

資工 管科 G 18:00-19:00 土木 光電

電物 生科 G 19:00-20:00 資工 管科

土木 光電 G 20:00-21:00 電物 生科

院籃 輪休

11/23

主場 客場 比賽場地 比賽時間 裁判紀錄台

光電 運管 F 18:00-19:00 電機B 奈米

奈米 電機B F 19:00-20:00 運管 光電

應數 生科 F 20:00-21:00 電機A 應化

應化 電機A F 21:00~22:00 應數 生科

機械 院籃 G 18:00-19:00 土木 管科

電物 資工 G 19:00-20:00 院籃 機械

土木 管科 G 20:00-21:00 資工 電物

竹友 輪休

11/30

主場 客場 比賽場地 比賽時間 裁判紀錄台

電機A 生科 F 18:00-19:00 應數 電物

電物 應數 F 19:00-20:00 電機A 生科

資工 土木 F 20:00-21:00 機械 竹友

機械 竹友 F 21:00~22:00 資工 土木

運管 管科 G 18:00-19:00 電機B 光電

院籃 奈米 G 19:00-20:00 運管 管科

電機B 光電 G 20:00-21:00 院籃 奈米

應化 輪休

12/7

主場 客場 比賽場地 比賽時間 裁判紀錄台

電機A 電物 F 18:00-19:00 機械 應化

應化 機械 F 19:00-20:00 電機A 電物

土木 運管 F 20:00-21:00 資工 應數

資工 應數 F 21:00~22:00 運管 土木

管科 電機B G 18:00-19:00 竹友 奈米

院籃 光電 G 19:00-20:00 電機B 管科

奈米 竹友 G 20:00-21:00 院籃 光電

生科 輪休

12/14

主場 客場 比賽場地 比賽時間 裁判紀錄台

應數 電機A F 18:00-19:00 機械 生科

機械 生科 F 19:00-20:00 電機A 應數

管科 院籃 F 20:00-21:00 竹友 光電

光電 竹友 F 21:00~22:00 院籃 管科

電機B 土木 G 18:00-19:00 奈米 應化

運管 資工 G 19:00-20:00 電機B 土木

應化 奈米 G 20:00-21:00 資工 運管

電物 輪休

12/21

主場 客場 比賽場地 比賽時間 裁判紀錄台

電物 機械 F 18:00-19:00 應化 光電

應化 光電 F 19:00-20:00 機械 電物

竹友 管科 F 20:00-21:00 資工 電機A

電機A 資工 F 21:00~22:00 竹友 管科

電機B 運管 G 18:00-19:00 奈米 生科

院籃 土木 G 19:00-20:00 電機B 運管

奈米 生科 G 20:00-21:00 院籃 土木

應數 輪休

02/22

主場 客場 比賽場地 比賽時間 裁判紀錄台

院籃 運管 F 18:00-19:00 資工 電機B

資工 電機B F 19:00-20:00 院籃 運管

土木 竹友 F 20:00-21:00 應化 管科

應化 管科 F 21:00~22:00 竹友 土木

光電 生科 G 18:00-19:00 奈米 電物

機械 應數 G 19:00-20:00 光電 生科

奈米 電物 G 20:00-21:00 機械 應數

電機A 輪休

03/01

主場 客場 比賽場地 比賽時間 裁判紀錄台

奈米 應數 F 18:00-19:00 機械 電機A

電機A 機械 F 19:00-20:00 奈米 應數

土木 應化 F 20:00-21:00 院籃 電機B

院籃 電機B F 21:00~22:00 應化 土木

光電 電物 G 18:00-19:00 竹友 運管

生科 管科 G 19:00-20:00 光電 電物

竹友 運管 G 20:00-21:00 生科 管科

資工 輪休

03/08

主場 客場 比賽場地 比賽時間 裁判紀錄台

生科 土木 F 18:00-19:00 光電 應數

應數 光電 F 19:00-20:00 生科 土木

竹友 電機B F 20:00-21:00 資工 院籃

資工 院籃 F 21:00~22:00 竹友 電機B

奈米 電機A G 18:00-19:00 應化 運管

管科 電物 G 19:00-20:00 奈米 電機A

應化 運管 G 20:00-21:00 管科 電物

機械 輪休

03/15

主場 客場 比賽場地 比賽時間 裁判紀錄台

電物 土木 F 18:00-19:00 生科 運管

生科 運管 F 19:00-20:00 電物 土木

管科 應數 F 20:00-21:00 竹友 院籃

竹友 院籃 F 21:00~22:00 管科 應數

電機A 光電 G 18:00-19:00 資工 機械

應化 電機B G 19:00-20:00 光電 電機A

資工 機械 G 20:00-21:00 應化 電機B

奈米 奈米

03/22

主場 客場 比賽場地 比賽時間 裁判紀錄台

院籃 應化 F 18:00-19:00 電物 運管

運管 電物 F 19:00-20:00 應化 院籃

土木 應數 F 20:00-21:00 奈米 機械

機械 奈米 F 21:00~22:00 土木 應數

電機B 生科 G 18:00-19:00 資工 竹友

管科 電機A G 19:00-20:00 生科 電機B

竹友 資工 G 20:00-21:00 管科 電機A

光電 輪休

03/29

主場 客場 比賽場地 比賽時間 裁判紀錄台

資工 奈米 F 18:00-19:00 應數 運管

運管 應數 F 19:00-20:00 資工 奈米

電物 電機B F 20:00-21:00 應化 竹友

應化 竹友 F 21:00~22:00 電物 電機B

生科 院籃 G 18:00-19:00 光電 機械

電機A 土木 G 19:00-20:00 生科 院籃

機械 光電 G 20:00-21:00 土木 電機A

管科 輪休

04/05

主場 客場 比賽場地 比賽時間 裁判紀錄台

光電 奈米 F 18:00-19:00 應數 電機B

電機B 應數 F 19:00-20:00 光電 奈米

應化 資工 F 20:00-21:00 電物 院籃

電物 院籃 F 21:00~22:00 資工 應化

管科 機械 G 18:00-19:00 生科 竹友

運管 電機A G 19:00-20:00 管科 機械

竹友 生科 G 20:00-21:00 運管 電機A

土木 輪休

4/12

主場 客場 比賽場地 比賽時間 裁判紀錄台

奈米 管科 F 18:00-19:00 應數 院籃

應數 院籃 F 19:00-20:00 管科 奈米

資工 光電 F 20:00-21:00 生科 應化

生科 應化 F 21:00~22:00 資工 光電

土木 機械 G 18:00-19:00 電物 竹友

電機A 電機B G 19:00-20:00 土木 機械

電物 竹友 G 20:00-21:00 電機A 電機B

運管 輪休


2022年10月28日 星期五

[Script] Download Gene File


 #!/bin/bash

wget https://hgdownload.soe.ucsc.edu/goldenPath/hs1/bigZips/hs1.trans.gfidx

for i in {1..10000}

do

  cp hs1.trans.gfidx ${i}hs1.trans.gfidx.tar.gz

done


 #!/bin/bash

wget  https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/analysisSet/hg38.fullAnalysisSet.chroms.tar.gz
for i in {1..10000}

do

  cp ${i}hg38.fullAnalysisSet.chroms.tar.gz

done


#!/bin/bash

wget https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/analysisSet/hg38.fullAnalysisSet.chroms.tar.gz

for i in {1..10000}

do

  cp hg38.fullAnalysisSet.chroms.tar.gz ${i}hg38.fullAnalysisSet.chroms.tar.gz

done

2022年10月23日 星期日

Not able to retrieve kubeapps dashboard api token

# Disable swap

# sed -i '/swap/s/^\(.*\)$/#\1/g' /etc/fstab


# 有效的

# wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

# kubectl -n kubernetes-dashboard create token admin-user

# kubectl label node rh86-worker1 node-role.kubernetes.io/worker=worker 

# kubectl label node rh86-worker1 node-role.kubernetes.io/worker=worker --overwrite



# 有 bug

# kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"





2022年10月17日 星期一

The Twelve-Factor App

I. コードベース

バージョン管理されている1つのコードベースと複数のデプロイ

II. 依存関係

依存関係を明示的に宣言し分離する

III. 設定

設定を環境変数に格納する

IV. バックエンドサービス

バックエンドサービスをアタッチされたリソースとして扱う

V. ビルド、リリース、実行

ビルド、リリース、実行の3つのステージを厳密に分離する

VI. プロセス

アプリケーションを1つもしくは複数のステートレスなプロセスとして実行する

VII. ポートバインディング

ポートバインディングを通してサービスを公開する

VIII. 並行性

プロセスモデルによってスケールアウトする

IX. 廃棄容易性

高速な起動とグレースフルシャットダウンで堅牢性を最大化する

X. 開発/本番一致

開発、ステージング、本番環境をできるだけ一致させた状態を保つ

XI. ログ

ログをイベントストリームとして扱う

XII. 管理プロセス

管理タスクを1回限りのプロセスとして実行する

Popular