Py学习  »  Git

K8s安装Tekton,ArgoCD,GitLab服务

院长技术 • 1 年前 • 400 次点击  

K8s安装Tekton: 

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


K8s安装ArgoCD: 

kubectl create namespace argocd


kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml



Helm安装GitLab:
helm repo add gitlab https://charts.gitlab.io/


helm install gitlab gitlab/gitlab --timeout 600s --set global.edition=ce




# task-build.yaml样例
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: build
spec:
  workspaces:
    - name: go-repo
      mountPath: /workspace/repo
  steps:
    - name: build
      image: golang:1.14.2-alpine3.11
      workingDir: /workspace/repo
      script: |
        go build -v -o demo-app
      env:
        - name: GOPROXY
          value: https://goproxy.cn
        - name: GOOS
          value: linux
        - name: GOARCH
          value: amd64





Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/178497