TKGm v1.2.1 on vSphere 環境の場合、こちらの手順を実施しておかないと、postgresql Pod の起動に失敗するため、事前に実施しておきます。
その上で以下を実行します。
$ helm upgrade --install concourse1 concourse/concourse -f ~/concourse/concourse-values.yaml --namespace concourse
Release"concourse1" has been upgraded.HappyHelming!
NAME: concourse1
LAST DEPLOYED:FriMar1915:11:582021
NAMESPACE: concourse
STATUS: deployed
REVISION:3
TEST SUITE:None
NOTES:*Concourse can be accessed:*Within your cluster, at the following DNS name at port 8080:
concourse1-web.concourse.svc.cluster.local*From outside the cluster, the URL(s) are:
http://concourse1.<MYDOMAIN>*Ifthisis your first time usingConcourse, follow the examples at https://concourse-ci.org/examples.html......(SNIP)......
無事にインストール出来ている事を確認します。
$ kubectl get all -n concourse
NAME READY STATUS RESTARTS AGE
pod/concourse1-postgresql-01/1Running022h
pod/concourse1-web-68d866988f-wvfnf 1/1Running020h
pod/concourse1-worker-01/1Running022h
pod/concourse1-worker-11/1Running022h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/concourse1-postgresql ClusterIPNone<none>5432/TCP 22h
service/concourse1-postgresql-headless ClusterIPNone<none>5432/TCP 22h
service/concourse1-web LoadBalancer100.71.152.226 xxx.xxx.xxx.xxx 8080:32748/TCP,443:30492/TCP 22h
service/concourse1-web-worker-gateway ClusterIPNone<none>2222/TCP 22h
service/concourse1-worker ClusterIPNone<none><none>22h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/concourse1-web 1/11122h
NAME DESIRED CURRENT READY AGE
replicaset.apps/concourse1-web-576567cb4700022h
replicaset.apps/concourse1-web-68d866988f11120h
replicaset.apps/concourse1-web-7d65bcc4700020h
replicaset.apps/concourse1-web-87bf5d65700021h
replicaset.apps/concourse1-web-988455c4500021h
NAME READY AGE
statefulset.apps/concourse1-postgresql 1/122h
statefulset.apps/concourse1-worker 2/222h
Concouse Web UI からfly CLI をダウンロードし、fly コマンドでConcourse を操作します。Web ブラウザからは、concourse1.<MYDOMAIN> に証明書エラー無くアクセス出来ていたのですが、、、x509: certificate signed by unknown authorityというエラーメッセージが出力されてしましました。。。
$ fly -t concourse1 login --concourse-url https://concourse1.<MYDOMAIN> -u test -p test
logging in to team 'main'
could not reach the Concourse server called concourse1:Get"https://concourse1.<MYDOMAIN>/api/v1/info": x509: certificate signedby unknown authority
is the targeted Concourse running? better go catch it lol
$ fly -t concourse1 login --concourse-url https://concourse1.<MYDOMAIN> -u test -p test --ca-cert=~/lab-cert/concourse1/certbot/cfg/live/concourse1.<MYDOMAIN>/cert.pem
logging in to team 'main'
target saved
$ git clone https://github.com/starkandwayne/concourse-tutorial.git
$ cd concourse-tutorial/tutorials/basic/basic-pipeline
パイプラインをセットします。
$ fly -t concourse1 sp -c pipeline.yml -p hello-world
jobs:
job job-hello-world has been added:+ name: job-hello-world
+ plan:+- config:+ image_resource:+ name:""+ source:+ repository: busybox
+ type: docker-image
+ platform: linux
+ run:+ args:+- hello world
+ path: echo
+ task: hello-world
+public:true
pipeline name: hello-world
apply configuration?[yN]: y
pipeline created!
you can view your pipeline here: https://concourse1.<MYDOMAIN>/teams/main/pipelines/hello-world
the pipeline is currently paused. to unpause, either:- run the unpause-pipeline command:
fly -t concourse1 unpause-pipeline -p hello-world
- click play next to the pipeline in the web ui