Argo Workflowって?
Get stuff done with Kubernetes | Argo
kubernetesで動かすワークフローエンジンです。
なぜか、イカイカ。
minikube + Argo Workflowであそんでみる。
argoproj-argo/demo.md at master · arrikto/argoproj-argo · GitHub
を参考します。
Argoのネームスペースを作成
$ kubectl create namespace argo
namespace/argo created
ネームスペースを確認
$ kubectl get namespace
NAME STATUS AGE
argo Active 11m
default Active 24h
kube-node-lease Active 24h
kube-public Active 24h
kube-system Active 24h
kubernetes-dashboard Active 24h
Argo setup
$ brew install argoproj/tap/argo
$ argo version
$ curl https://raw.githubusercontent.com/argoproj/argo/v2.2.1/manifests/install.yaml|sed "s/apps\/v1beta2/apps\/v1/g"|kubectl apply -n argo -f -
apps/v1beta1, apps/v1beta2
が
apps/v1
変わっため、下記に変更してます。
kubectl create rolebinding default-admin --clusterrole=admin --serviceaccount=default:default
Argo start
kubectl port-forward deployment/argo-ui 8001:8001 --namespace argo
localhost:8001 にアクセス
workflow を投げる
$ kubectl create -f https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml
workflow.argoproj.io/hello-world-zg54m created
$ argo submit https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml
Name: hello-world-58f4w
Namespace: default
ServiceAccount: default
Status: Pending
Created: Tue Dec 22 19:13:42 +0900 (now)
argoコマンドの方が結果がわかりやすいですね。