發表文章

What is new in Storage for Kubernetes 1.9

With the Holiday seasons upon us, many in the Kubernetes community have been hard at work preparing the delivery of one of the most significant set of changes brought to the Kubernetes storage subsystem. These changes are being released in alpha with some introducing minor updates while others are designed to fundamentally change the way storage is deployed within Kubernetes. This writeup highlights three of the major changes that have been released in version 1.9 of Kubernetes. Raw Block Support There are classes of applications, such as databases, that require direct access to raw block storage without the abstraction of a filesystem for peak performance and consistent IO. Starting with version 1.9, an alpha implementation will allow administrators and users to use existing Kubernetes storage semantics to specify and deploy raw block storage for consumption across a Kubernetes cluster. This feature has been implemented to be backward compatible with existing storage configurati...

docker commands

Docker 採用與 Git 類似的指令,若有學過 Git 的人,想必對於 Docker 某些指令感到熟悉,以下整理目前 Docker 的所有指令,並依依說明其功能。 以下為 Docker 的子指令分類: 分類名稱 指令 環境資訊 info、version、deamon 容器管理 create、kill、exec、pause、restart、rm、start、stop、run、unpause 映像檔管理 build、images、import、load、rmi、save、tag、commit 映像檔倉庫 login、logout、pull、push、search 容器維護 attach、export、inspect、port、ps、rename、stats、top、wait、cp、diff 系統資訊 events、history、logs daemon 服務指令 如果不是檔案庫安裝docker服務,我們就需要使用到該指令,否則可以省略。手動啟動 docker 服務時,可以加入容器的 DNS設定、儲存驅動與執行驅動的參數,如下: $ export DOCKER_HOST= " tcp://0.0.0.0:2375 " $ Docker -d -D -e lxc -s btrfs --dns 8.8.8.8 --dns-search example.com 只有手動啟動需要上述指令,如果是自動只需要執行 sudo service docker start  即可,OS X 與 Windows 可以安裝  Docker Toolbox 。 選項 說明 -d 以服務方式執行 Docker -D Debug 模式執行 Docker -e [option] 指定執行驅動,預設為  libcontainer -s [option] 強制 Docker 使用指定儲存驅動,預設為  AUFS --dns [option] 設定所有容器使用的 DNS 伺服器 --dns-search [option] 設定所有容器蒐尋的網域 ...