0%

  • 目錄
    • Introduce and analysis
    • 💎Cluster level ELK 💎
    • Sidecar mode
    • Integrate log collecting component into an app

今天要來談談什麼是Cluster level ELK
Cluster 的基本工作單位是Node, 所以我今天會試著將Fluentd裝在每台Node上面

Read more »

Oh My Logs ! 談談如何在K8s中收集logs - 1

  • 目錄
    • 💎Introduce and analysis 💎
    • Cluster level ELK
    • Sidecar mode
    • Integrate log collecting component into an app

今天要來談談在Kubernetes要如何收集logs!

在K8s中由規模大到小有三種收集logs的方式

  1. 每台node都安裝一個agent輸出logs
  2. 每個pod都有filebeat的sidecar收集並輸出logs
  3. 每個container都由filebeat輸出logs
Read more »

本篇對象: 以前沒有碰過Kubenetes, Drone, Rancher的雲服務新手
內容涵蓋:
👆基本的概念
👆單節點起一個Rancher環境
👆多節點Rancher,並且加入一個對外的nginx服務
👆參考資料
👆後記

🌎基本概念

Rancher 並不等於 Kubernetes(容器管理平台), 而是他的Web UI介面。
當你從DockerHub下載並跑起一個Rancher Image的時候,他會在你的主機上安裝一套K8s。

Dockerfile 定義 Docker Image
docker-compose.yaml 定義 多容器應用程式
而在K8s的世界中也是以一個yaml file定義想要的服務最終會長什麼樣子
因此在Rancher提供方便的UI之餘,建議還是要知道怎麼寫yaml

Read more »

LINE 終於要跨界物聯網了噢椰
光想到可以用LINE去玩弄各種開關就覺得興奮(X

今天要來做的IoT小裝置是 智慧LED燈
雖然說是智慧但其實沒什麼智慧

Read more »

時隔三個月此人終於想到他還有一個部落格
雖然現在是大medium時代,
但我還是覺得自己維護一個部落格是一件很有成就感的事情
畢竟你可以從買Server, domain name, build up blog都自己來
也可以從解決問題中學到很多事情

例如我這次要解決的就是要讓我的Server可以自動拉我push的新文章
這邊會講到以下3件事:

♛ CNAME & How to modify your NGINX Configuration
♛ Gitlab’s webhook & How to pull without username/password
♛ Set up a node server with express

Read more »

之前一直沒時間紀錄用VUE這個框架碰到什麼雷
今天終於有機會一一紀錄,也希望能夠幫助到一些卡住的人~
起因就是我想用Websocket寫個小遊戲之類的
但是如果不用框架寫遊戲就是體力的終點啊哈哈哈哈哈哈哈哈

這個小遊戲還在生產中,有興趣的人可一起來看看
=> https://github.com/hazel-shen/web-game

Read more »

最近在學習JAVA的單元測試(UNIT TEST)
具體會用到的package有這些

1
2
3
4
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.7.2'

要入門的方式最好是從測試API開始
所以我寫了一個health check return 200

Read more »