廊坊建站服务如何自己创建一个网站
欢迎关注我的公众号:
目前刚开始写一个月,一共写了18篇原创文章,文章目录如下:
istio多集群探秘,部署了50次多集群后我得出的结论
istio多集群链路追踪,附实操视频
istio防故障利器,你知道几个,istio新手不要读,太难!
istio业务权限控制,原来可以这么玩
istio实现非侵入压缩,微服务之间如何实现压缩
不懂envoyfilter也敢说精通istio系列-http-rbac-不要只会用AuthorizationPolicy配置权限
不懂envoyfilter也敢说精通istio系列-02-http-corsFilter-不要只会vs
不懂envoyfilter也敢说精通istio系列-03-http-csrf filter-再也不用再代码里写csrf逻辑了
不懂envoyfilter也敢说精通istio系列http-jwt_authn-不要只会RequestAuthorization
不懂envoyfilter也敢说精通istio系列-05-fault-filter-故障注入不止是vs
不懂envoyfilter也敢说精通istio系列-06-http-match-配置路由不只是vs
不懂envoyfilter也敢说精通istio系列-07-负载均衡配置不止是dr
不懂envoyfilter也敢说精通istio系列-08-连接池和断路器
不懂envoyfilter也敢说精通istio系列-09-http-route filter
不懂envoyfilter也敢说精通istio系列-network filter-redis proxy
不懂envoyfilter也敢说精通istio系列-network filter-HttpConnectionManager
不懂envoyfilter也敢说精通istio系列-ratelimit-istio ratelimit完全手册
tekton新课发布:ci/cd之tekton实战--其他视频教程-系统/网络/运维-CSDN程序员研修院
什么是TriggerTemplate
创建资源的模板,比如用来创建 PipelineResource 和 PipelineRun
支持的资源
v1alpha1 | v1beta1 |
---|---|
pipelines | pipelines |
pipelineruns | pipelineruns |
tasks | tasks |
taskruns | taskruns |
clustertasks | clustertasks |
conditions | |
pipelineresources |
资源详解
resourcetemplates
tasks
triggerTemplate/task-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:resourcetemplates:- apiVersion: tekton.dev/v1beta1kind: Taskmetadata:name: params-string spec: params:- name: directorytype: stringdescription: The directory containing the build context.default: /workspacesteps:- image: ubuntucommand: [pwd]workingDir: "$(params.directory)"imagePullPolicy: IfNotPresent
taskruns
triggerTemplate/taskruns-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:params:- name: array-paramdescription: testresourcetemplates:- apiVersion: tekton.dev/v1beta1kind: Taskmetadata:name: my-params-arrayspec:params:- name: array-paramtype: arraydefault:- a- b- csteps:- image: ubuntucommand: [echo]args:- "$(params.array-param[*])"imagePullPolicy: IfNotPresent- apiVersion: tekton.dev/v1beta1kind: TaskRunmetadata:generateName: params-spec:taskRef:name: my-params-arrayparams:- name: array-paramvalue: $(tt.params.array-param)
clustertasks
triggerTemplate/clustertasks-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:params:- name: array-paramdescription: testresourcetemplates:- apiVersion: tekton.dev/v1beta1kind: ClusterTaskmetadata:name: my-params-arrayspec:params:- name: array-paramtype: arraydefault:- a- b- csteps:- image: ubuntucommand: [echo]args:- "$(params.array-param[*])"imagePullPolicy: IfNotPresent- apiVersion: tekton.dev/v1beta1kind: TaskRunmetadata:generateName: params-spec:taskRef:name: my-params-arraykind: ClusterTaskparams:- name: array-paramvalue: $(tt.params.array-param)
pipelineresources
triggerTemplate/pipelineresources-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:params:- name: url- name: revisionresourcetemplates:- apiVersion: tekton.dev/v1alpha1kind: PipelineResourcemetadata:name: workspacespec:type: gitparams:- name: urlvalue: $(tt.params.url)- name: revisionvalue: $(tt.params.revision)
pipelines
triggerTemplate/pipelines-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:resourcetemplates:- apiVersion: tekton.dev/v1beta1kind: Pipelinemetadata:name: mypipelinespec:tasks:- name: build-apptaskRef:name: build-push-kanikoresources:inputs:- name: workspaceresource: workspaceoutputs:- name: builtImageresource: my-image- name: deploy-apptaskRef:name: kubectl-deployresources:inputs:- name: workspaceresource: workspace- name: imageresource: my-imagefrom:- build-appparams:- name: script_bodyvalue: $(params.script_body_pipeline)params:- name: script_body_pipelinetype: stringresources:- name: workspacetype: git- name: my-imagetype: image
pipelineruns
triggerTemplate/pipelineruns-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:resourcetemplates:- apiVersion: tekton.dev/v1beta1kind: PipelineRunmetadata:generateName: mypipeline-runspec:serviceAccountName: test-task-robot-git-sshpipelineRef:name: mypipelineparams:- name: script_body_pipelinevalue: "kubectl apply -f /workspace/workspace/deployment.yaml "resources:- name: workspaceresourceRef: name: workspace- name: my-imageresourceRef: name: my-image
conditions
triggerTemplate/conditions-template.yaml
apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata:name: template spec:resourcetemplates:- apiVersion: tekton.dev/v1alpha1kind: Conditionmetadata:name: is-equalspec:params:- name: lefttype: string- name: righttype: stringcheck:image: alpinescript: |#!/bin/shif [ $(params.left) = $(params.right) ]; thenecho "$(params.left) == $(params.right)"exit 0elseecho "$(params.left) != $(params.right)"exit 1fi