| 阅读 | 共 398 字,阅读约
安装
Kubevela安装
Tekton安装
1. 环境要求
- k8s >= 1.16
2. 开始安装
1# 执行以下命令安装
2[root@middleware-1810-01 ~]# kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
3
4namespace/tekton-pipelines created
5podsecuritypolicy.policy/tekton-pipelines created
6clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access created
7clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-tenant-access created
8clusterrole.rbac.authorization.k8s.io/tekton-pipelines-webhook-cluster-access created
9role.rbac.authorization.k8s.io/tekton-pipelines-controller created
10role.rbac.authorization.k8s.io/tekton-pipelines-webhook created
11role.rbac.authorization.k8s.io/tekton-pipelines-leader-election created
12serviceaccount/tekton-pipelines-controller created
13serviceaccount/tekton-pipelines-webhook created
14Warning: rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
15clusterrolebinding.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access created
16clusterrolebinding.rbac.authorization.k8s.io/tekton-pipelines-controller-tenant-access created
17clusterrolebinding.rbac.authorization.k8s.io/tekton-pipelines-webhook-cluster-access created
3. 安装后的效果
1# 创建了一个tekton-pipelines的命名空间
2[root@middleware-1810-01 ~]# kubectl get ns tekton-pipelines
3NAME STATUS AGE
4tekton-pipelines Active 33s
5
6# 查看命名空间中的资源
7# 包括:Deployment(controller和webhook),Service,Horizontalpodautoscaler
8[root@middleware-1810-01 ~]# kubectl get all -n tekton-pipelines
9NAME READY STATUS RESTARTS AGE
10pod/tekton-pipelines-controller-769bcc6996-98n5j 0/1 ImagePullBackOff 0 3m22s
11pod/tekton-pipelines-webhook-76d9b48fff-n92gd 0/1 ImagePullBackOff 0 3m22s
12
13NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
14service/tekton-pipelines-controller ClusterIP 10.68.237.16 <none> 9090/TCP,8080/TCP 3m23s
15service/tekton-pipelines-webhook ClusterIP 10.68.63.186 <none> 9090/TCP,8008/TCP,443/TCP,8080/TCP 3m22s
16
17NAME READY UP-TO-DATE AVAILABLE AGE
18deployment.apps/tekton-pipelines-controller 0/1 1 0 3m23s
19deployment.apps/tekton-pipelines-webhook 0/1 1 0 3m22s
20
21NAME DESIRED CURRENT READY AGE
22replicaset.apps/tekton-pipelines-controller-769bcc6996 1 1 0 3m22s
23replicaset.apps/tekton-pipelines-webhook-76d9b48fff 1 1 0 3m22s
24
25NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
26horizontalpodautoscaler.autoscaling/tekton-pipelines-webhook Deployment/tekton-pipelines-webhook <unknown>/100% 1 5 1 3m22s
Istio安装
1curl -L https://istio.io/downloadIstio | sh -
2istioctl install
3
4[root@middleware-1810-01 ~]# kubectl get crd|grep istio
5authorizationpolicies.security.istio.io 2021-02-06T07:02:24Z
6destinationrules.networking.istio.io 2021-02-06T07:02:24Z
7envoyfilters.networking.istio.io 2021-02-06T07:02:24Z
8gateways.networking.istio.io 2021-02-06T07:02:25Z
9istiooperators.install.istio.io 2021-02-06T07:02:25Z
10peerauthentications.security.istio.io 2021-02-06T07:02:25Z
11requestauthentications.security.istio.io 2021-02-06T07:02:25Z
12serviceentries.networking.istio.io 2021-02-06T07:02:25Z
13sidecars.networking.istio.io 2021-02-06T07:02:25Z
14virtualservices.networking.istio.io 2021-02-06T07:02:25Z
15workloadentries.networking.istio.io 2021-02-06T07:02:26Z
16workloadgroups.networking.istio.io 2021-02-06T07:02:26Z
istio demo
1# 为命名空间打上标签 istio-injection=enabled:
2kubectl label namespace guestbook istio-injection=enabled
3# 安装应用
4kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml -n guestbook