在GCP上安裝Drone

James Shieh
2 min readNov 14, 2019

--

下載原始碼:

git clone https://github.com/JamesShieh0510/k8s-cluster-builder.git

編輯參數:

cd ./drone/
nano ./install-drone.sh

其中

namespace=drone #命名空間
clientSecret=7b216221a76f5ff8406f64e0fdc6f5561b33fbac #github client Secret
loadBalancerIP=35.234.34.244
provider=github #provider,目前script僅支援github
github_clientID=9625dbae41bebfd98253 #github的client ID
sourceControl_secret=drone-server-secrets #you can generate one from https://correcthorsebatterystaple.net/
hostname=drone.jamesshieh.app #hostname for drone
github_adminUser=jamesshieh-imrc #github administrator
#you need to creat a persistent volume first, and put the volume's name here.
volume_name=drone-resource-volume #drone需要指定Volume,請先建立好,並將其名稱填入此處
issuer=letsencrypt-prod # you need to create a issuer for HTTPS

執行:

, ./install-drone.sh

若使用GCP可參考此篇建立Volume:

--

--

James Shieh
James Shieh

Written by James Shieh

Find something more important than you are and dedicate your life to it.

No responses yet