2.10.
2.10.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.2.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.2.2. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc login --username=<NAMEOFUSER> https://<HOSTNAME>:6443$ oc new-project <your-project>apiVersion: maistra.io/v1 kind: ServiceMeshMemberRoll metadata: name: default namespace: istio-system spec: members: # a list of projects joined into the service mesh - your-project-name - another-project-name$ oc create -n istio-system -f servicemeshmemberroll-default.yaml$ oc get smmr -n istio-system default
2.10.3. 링크 복사링크가 클립보드에 복사되었습니다!
[D]
2.10.3.1. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: maistra.io/v1 kind: ServiceMeshMemberRoll metadata: name: default namespace: istio-system #control plane project spec: members: # a list of projects joined into the service mesh - your-project-name - another-project-name
2.10.3.2. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc edit smmr -n <controlplane-namespace>apiVersion: maistra.io/v1 kind: ServiceMeshMemberRoll metadata: name: default namespace: istio-system #control plane project spec: members: # a list of projects joined into the service mesh - your-project-name - another-project-name
2.10.4. 링크 복사링크가 클립보드에 복사되었습니다!
[D]
2.10.4.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.4.2. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: maistra.io/v1 kind: ServiceMeshMember metadata: name: default namespace: my-application spec: controlPlaneRef: namespace: istio-system name: basic$ oc apply -f <file-name>
$ oc get smm default -n my-applicationNAME CONTROL PLANE READY AGE default istio-system/basic True 2m11s$ oc describe smmr default -n istio-systemName: default Namespace: istio-system Labels: <none> # ... Status: # ... Configured Members: default my-application # ... Members: default my-application
2.10.5. 링크 복사링크가 클립보드에 복사되었습니다!
[D]
2.10.5.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.5.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.6. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.6.1. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc new-project info
apiVersion: maistra.io/v1 kind: ServiceMeshMemberRoll metadata: name: default spec: members: - info$ oc create -n istio-system -f servicemeshmemberroll-default.yaml
$ oc get smmr -n istio-system -o wideNAME READY STATUS AGE MEMBERS default 1/1 Configured 70s ["info"]$ oc apply -n info -f https://raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/platform/kube/bookinfo.yamlservice/details created serviceaccount/info-details created deployment.apps/details-v1 created service/ratings created serviceaccount/info-ratings created deployment.apps/ratings-v1 created service/reviews created serviceaccount/info-reviews created deployment.apps/reviews-v1 created deployment.apps/reviews-v2 created deployment.apps/reviews-v3 created service/productpage created serviceaccount/info-productpage created deployment.apps/productpage-v1 created$ oc apply -n info -f https://raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/networking/bookinfo-gateway.yamlgateway.networking.istio.io/info-gateway created virtualservice.networking.istio.io/info created$ export GATEWAY_URL=$(oc -n istio-system get route istio-ingressgateway -o jsonpath='{.spec.host}')
2.10.6.2. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc apply -n info -f https://raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/networking/destination-rule-all.yaml$ oc apply -n info -f https://raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/networking/destination-rule-all-mtls.yamldestinationrule.networking.istio.io/productpage created destinationrule.networking.istio.io/reviews created destinationrule.networking.istio.io/ratings created destinationrule.networking.istio.io/details created
2.10.6.3. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc get pods -n infoNAME READY STATUS RESTARTS AGE details-v1-55b869668-jh7hb 2/2 Running 0 12m productpage-v1-6fc77ff794-nsl8r 2/2 Running 0 12m ratings-v1-7d7d8d8b56-55scn 2/2 Running 0 12m reviews-v1-868597db96-bdxgq 2/2 Running 0 12m reviews-v2-5b64f47978-cvssp 2/2 Running 0 12m reviews-v3-6dfd49b55b-vcwpf 2/2 Running 0 12mecho "http://$GATEWAY_URL/productpage"
[D]
2.10.6.4. 링크 복사링크가 클립보드에 복사되었습니다!
2.10.6.4.1. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc delete project info
2.10.6.4.2. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc -n istio-system patch --type='json' smmr default -p '[{"op": "remove", "path": "/spec/members", "value":["'"info"'"]}]'