Open Source

install tekton on minikube

jerymy 2020. 4. 21. 19:27

 

# tekton 설치

$ kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml

 

# tekton dashboard 설치

$ kubectl apply --filename https://github.com/tektoncd/dashboard/releases/download/v0.6.0/tekton-dashboard-release.yaml

# tekton 설치 확인

# 외부 접근을 위해 tekton ingress 생성

$ kubectl apply -f ing-tekton.yaml

# ing-tekton.yaml, <VM_IP>는 본인의 IP로 변경 필요.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: tekton-dashboard
  namespace: tekton-pipelines
spec:
  rules:
  - host: tekton-dashboard.<VM_IP>.nip.io
    http:
      paths:
      - backend:
          serviceName: tekton-dashboard
          servicePort: 9097

ingress 적용하면

http://tekton-dashboard.<VM_IP>.nip.io 로 dashboard 접근 가능

 

# tekton cli 설치

# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.8.0/tkn_0.8.0_Linux_x86_64.tar.gz

# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tkn_0.8.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn

 

# tekton cli 설치확인

$ tkn version

 

 

참고사이트

https://github.com/tektoncd/pipeline/blob/master/docs/install.md#installing-tekton-pipelines-on-kubernetes

 

tektoncd/pipeline

A K8s-native Pipeline resource. Contribute to tektoncd/pipeline development by creating an account on GitHub.

github.com