2.3.
2.3.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.1.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.1.2. 링크 복사링크가 클립보드에 복사되었습니다!
- 중요
2.3.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.2.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.3. 링크 복사링크가 클립보드에 복사되었습니다!
|
|
|
|
|
|
|
|
2.3.4. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.1.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.1.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.2.1. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: maistra.io/v2
kind: ServiceMeshControlPlane
spec:
gateways:
openshiftRoute:
enabled: true
2.3.4.2.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.3. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.4. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.5. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.6. 링크 복사링크가 클립보드에 복사되었습니다!
An error occurred
admission webhook smcp.validation.maistra.io denied the request: [support for policy.type "Mixer" and policy.Mixer options have been removed in v2.1, please use another alternative, support for telemetry.type "Mixer" and telemetry.Mixer options have been removed in v2.1, please use another alternative]”
apiVersion: maistra.io/v2
kind: ServiceMeshControlPlane
spec:
policy:
type: Istiod
telemetry:
type: Istiod
version: v2.6
2.3.4.7. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc project istio-system$ oc get smcp -o yaml작은 정보
apiVersion: maistra.io/v2 kind: ServiceMeshControlPlane metadata: name: basic spec: version: v2.6
2.3.4.8. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.1. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc get smcp -o yaml$ oc get smcp.v1.maistra.io <smcp_name> > smcp-resource.yaml #Edit the smcp-resource.yaml file. $ oc replace -f smcp-resource.yaml$ oc patch smcp.v1.maistra.io <smcp_name> --type json --patch '[{"op": "replace","path":"/spec/path/to/bad/setting","value":"corrected-value"}]'$ oc edit smcp.v1.maistra.io <smcp_name>
$ oc project istio-system$ oc get servicemeshcontrolplanes.v1.maistra.io <smcp_name> -o yaml > <smcp_name>.v1.yaml$ oc get smcp <smcp_name> -o yaml > <smcp_name>.v2.yaml$ oc new-project istio-system-upgrade$ oc create -n istio-system-upgrade -f <smcp_name>.v2.yaml
2.3.4.8.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.2.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.2.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.2.3. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.2.4. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.2.5. 링크 복사링크가 클립보드에 복사되었습니다!
spec:
policy:
type: Mixer
spec:
telemetry:
type: Mixer
2.3.4.8.2.6. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.2.6.1. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
name: productpage-mTLS-disable
namespace: <namespace>
spec:
targets:
- name: productpage
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: productpage-mTLS-disable
namespace: <namespace>
spec:
mtls:
mode: DISABLE
selector:
matchLabels:
# this should match the selector for the "productpage" service
app: productpage
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
name: productpage-mTLS-with-JWT
namespace: <namespace>
spec:
targets:
- name: productpage
ports:
- number: 9000
peers:
- mtls:
origins:
- jwt:
issuer: "https://securetoken.google.com"
audiences:
- "productpage"
jwksUri: "https://www.googleapis.com/oauth2/v1/certs"
jwtHeaders:
- "x-goog-iap-jwt-assertion"
triggerRules:
- excludedPaths:
- exact: /health_check
principalBinding: USE_ORIGIN
#require mtls for productpage:9000
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: productpage-mTLS-with-JWT
namespace: <namespace>
spec:
selector:
matchLabels:
# this should match the selector for the "productpage" service
app: productpage
portLevelMtls:
9000:
mode: STRICT
---
#JWT authentication for productpage
apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication
metadata:
name: productpage-mTLS-with-JWT
namespace: <namespace>
spec:
selector:
matchLabels:
# this should match the selector for the "productpage" service
app: productpage
jwtRules:
- issuer: "https://securetoken.google.com"
audiences:
- "productpage"
jwksUri: "https://www.googleapis.com/oauth2/v1/certs"
fromHeaders:
- name: "x-goog-iap-jwt-assertion"
---
#Require JWT token to access product page service from
#any client to all paths except /health_check
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: productpage-mTLS-with-JWT
namespace: <namespace>
spec:
action: ALLOW
selector:
matchLabels:
# this should match the selector for the "productpage" service
app: productpage
rules:
- to: # require JWT token to access all other paths
- operation:
notPaths:
- /health_check
from:
- source:
# if using principalBinding: USE_PEER in the Policy,
# then use principals, e.g.
# principals:
# - “*”
requestPrincipals:
- “*”
- to: # no JWT token required to access health_check
- operation:
paths:
- /health_check
2.3.4.8.3. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.3.1. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.3.2. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.4.8.3.3. 링크 복사링크가 클립보드에 복사되었습니다!
spec:
tracing:
sampling: 100 # 1%
type: Jaeger
spec:
addons:
jaeger:
name: jaeger
install:
storage:
type: Memory # or Elasticsearch for production mode
memory:
maxTraces: 100000
elasticsearch: # the following values only apply if storage:type:=Elasticsearch
storage: # specific storageclass configuration for the Jaeger Elasticsearch (optional)
size: "100G"
storageClassName: "storageclass"
nodeCount: 3
redundancyPolicy: SingleRedundancy
runtime:
components:
tracing.jaeger: {} # general Jaeger specific runtime configuration (optional)
tracing.jaeger.elasticsearch: #runtime configuration for Jaeger Elasticsearch deployment (optional)
container:
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
2.3.4.8.3.4. 링크 복사링크가 클립보드에 복사되었습니다!
spec:
addons:
grafana:
enabled: true
install: {} # customize install
kiali:
enabled: true
name: kiali
install: {} # customize install
2.3.4.8.3.5. 링크 복사링크가 클립보드에 복사되었습니다!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2.3.4.8.4. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.5. 링크 복사링크가 클립보드에 복사되었습니다!
2.3.5.1. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc rollout restart <deployment>