1 安装

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Install Tekton Pipelines
version_number='v0.48.0'
kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/$version_number/release.yaml

kubectl get pods --namespace tekton-pipelines --watch

# Install and set up Tekton Triggers
VERSION_NUMBER='v0.24.1'
kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/previous/$VERSION_NUMBER/release.yaml
kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/previous/$VERSION_NUMBER/interceptors.yaml

kubectl get pods --namespace tekton-pipelines --watch

# Installing Tekton Dashboard
VERSION_NUMBER='v0.36.1'
kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/previous/$VERSION_NUMBER/release-full.yaml

kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097

DASHBOARD_URL=tekton.domain.tld
kubectl apply -n tekton-pipelines -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: tekton-dashboard
  namespace: tekton-pipelines
spec:
  rules:
  - host: $DASHBOARD_URL
    http:
      paths:
      - pathType: ImplementationSpecific
        backend:
          service:
            name: tekton-dashboard
            port:
              number: 9097
EOF

# Operator
VERSION_NUMBER='v0.67.0'
# 1.Install operator
kubectl apply -f https://storage.googleapis.com/tekton-releases/operator/previous/$VERSION_NUMBER/release.yaml

# 2.Install Components ( uses installation profiles: lite , all, basic)
kubectl apply -f https://raw.githubusercontent.com/tektoncd/operator/$VERSION_NUMBER/config/crs/kubernetes/config/all/operator_v1alpha1_config_cr.yaml