|
$ kubectl get cm/istio-mixer-custom-resources -n $NS -o yaml |
|
apiVersion: v1 |
|
data: |
|
custom-resources.yaml: |- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: attributemanifest |
|
metadata: |
|
name: istioproxy |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
attributes: |
|
origin.ip: |
|
valueType: IP_ADDRESS |
|
origin.uid: |
|
valueType: STRING |
|
origin.user: |
|
valueType: STRING |
|
request.headers: |
|
valueType: STRING_MAP |
|
request.id: |
|
valueType: STRING |
|
request.host: |
|
valueType: STRING |
|
request.method: |
|
valueType: STRING |
|
request.path: |
|
valueType: STRING |
|
request.reason: |
|
valueType: STRING |
|
request.referer: |
|
valueType: STRING |
|
request.scheme: |
|
valueType: STRING |
|
request.size: |
|
valueType: INT64 |
|
request.time: |
|
valueType: TIMESTAMP |
|
request.useragent: |
|
valueType: STRING |
|
response.code: |
|
valueType: INT64 |
|
response.duration: |
|
valueType: DURATION |
|
response.headers: |
|
valueType: STRING_MAP |
|
response.size: |
|
valueType: INT64 |
|
response.time: |
|
valueType: TIMESTAMP |
|
source.uid: |
|
valueType: STRING |
|
source.user: |
|
valueType: STRING |
|
destination.uid: |
|
valueType: STRING |
|
connection.id: |
|
valueType: STRING |
|
connection.received.bytes: |
|
valueType: INT64 |
|
connection.received.bytes_total: |
|
valueType: INT64 |
|
connection.sent.bytes: |
|
valueType: INT64 |
|
connection.sent.bytes_total: |
|
valueType: INT64 |
|
connection.duration: |
|
valueType: DURATION |
|
connection.mtls: |
|
valueType: BOOL |
|
context.protocol: |
|
valueType: STRING |
|
context.timestamp: |
|
valueType: TIMESTAMP |
|
context.time: |
|
valueType: TIMESTAMP |
|
api.service: |
|
valueType: STRING |
|
api.version: |
|
valueType: STRING |
|
api.operation: |
|
valueType: STRING |
|
api.protocol: |
|
valueType: STRING |
|
request.auth.principal: |
|
valueType: STRING |
|
request.auth.audiences: |
|
valueType: STRING |
|
request.auth.presenter: |
|
valueType: STRING |
|
request.api_key: |
|
valueType: STRING |
|
|
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: attributemanifest |
|
metadata: |
|
name: kubernetes |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
attributes: |
|
source.ip: |
|
valueType: IP_ADDRESS |
|
source.labels: |
|
valueType: STRING_MAP |
|
source.name: |
|
valueType: STRING |
|
source.namespace: |
|
valueType: STRING |
|
source.service: |
|
valueType: STRING |
|
source.serviceAccount: |
|
valueType: STRING |
|
destination.ip: |
|
valueType: IP_ADDRESS |
|
destination.labels: |
|
valueType: STRING_MAP |
|
destination.name: |
|
valueType: STRING |
|
destination.namespace: |
|
valueType: STRING |
|
destination.service: |
|
valueType: STRING |
|
destination.serviceAccount: |
|
valueType: STRING |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: stdio |
|
metadata: |
|
name: handler |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
outputAsJson: true |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: logentry |
|
metadata: |
|
name: accesslog |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
severity: '"Default"' |
|
timestamp: request.time |
|
variables: |
|
sourceIp: source.ip | ip("0.0.0.0") |
|
destinationIp: destination.ip | ip("0.0.0.0") |
|
sourceUser: source.user | "" |
|
method: request.method | "" |
|
url: request.path | "" |
|
protocol: request.scheme | "http" |
|
responseCode: response.code | 0 |
|
responseSize: response.size | 0 |
|
requestSize: request.size | 0 |
|
latency: response.duration | "0ms" |
|
connectionMtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: rule |
|
metadata: |
|
name: stdio |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
match: "true" # If omitted match is true. |
|
actions: |
|
- handler: handler.stdio |
|
instances: |
|
- accesslog.logentry |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: metric |
|
metadata: |
|
name: requestcount |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
value: "1" |
|
dimensions: |
|
source_service: source.service | "unknown" |
|
source_version: source.labels["version"] | "unknown" |
|
destination_service: destination.service | "unknown" |
|
destination_version: destination.labels["version"] | "unknown" |
|
response_code: response.code | 200 |
|
connection_mtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: metric |
|
metadata: |
|
name: requestduration |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
value: response.duration | "0ms" |
|
dimensions: |
|
source_service: source.service | "unknown" |
|
source_version: source.labels["version"] | "unknown" |
|
destination_service: destination.service | "unknown" |
|
destination_version: destination.labels["version"] | "unknown" |
|
response_code: response.code | 200 |
|
connection_mtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: metric |
|
metadata: |
|
name: requestsize |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
value: request.size | 0 |
|
dimensions: |
|
source_service: source.service | "unknown" |
|
source_version: source.labels["version"] | "unknown" |
|
destination_service: destination.service | "unknown" |
|
destination_version: destination.labels["version"] | "unknown" |
|
response_code: response.code | 200 |
|
connection_mtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: metric |
|
metadata: |
|
name: responsesize |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
value: response.size | 0 |
|
dimensions: |
|
source_service: source.service | "unknown" |
|
source_version: source.labels["version"] | "unknown" |
|
destination_service: destination.service | "unknown" |
|
destination_version: destination.labels["version"] | "unknown" |
|
response_code: response.code | 200 |
|
connection_mtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: metric |
|
metadata: |
|
name: tcpbytesent |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
labels: |
|
istio-protocol: tcp # needed so that mixer will only generate when context.protocol == tcp |
|
spec: |
|
value: connection.sent.bytes | 0 |
|
dimensions: |
|
source_service: source.service | "unknown" |
|
source_version: source.labels["version"] | "unknown" |
|
destination_service: destination.service | "unknown" |
|
destination_version: destination.labels["version"] | "unknown" |
|
connection_mtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: metric |
|
metadata: |
|
name: tcpbytereceived |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
labels: |
|
istio-protocol: tcp # needed so that mixer will only generate when context.protocol == tcp |
|
spec: |
|
value: connection.received.bytes | 0 |
|
dimensions: |
|
source_service: source.service | "unknown" |
|
source_version: source.labels["version"] | "unknown" |
|
destination_service: destination.service | "unknown" |
|
destination_version: destination.labels["version"] | "unknown" |
|
connection_mtls: connection.mtls | false |
|
monitored_resource_type: '"UNSPECIFIED"' |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: prometheus |
|
metadata: |
|
name: handler |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
metrics: |
|
- name: request_count |
|
instance_name: requestcount.metric.simple-auth-test-735b86b2602c47f7b428 |
|
kind: COUNTER |
|
label_names: |
|
- source_service |
|
- source_version |
|
- destination_service |
|
- destination_version |
|
- response_code |
|
- connection_mtls |
|
- name: request_duration |
|
instance_name: requestduration.metric.simple-auth-test-735b86b2602c47f7b428 |
|
kind: DISTRIBUTION |
|
label_names: |
|
- source_service |
|
- source_version |
|
- destination_service |
|
- destination_version |
|
- response_code |
|
- connection_mtls |
|
buckets: |
|
explicit_buckets: |
|
bounds: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] |
|
- name: request_size |
|
instance_name: requestsize.metric.simple-auth-test-735b86b2602c47f7b428 |
|
kind: DISTRIBUTION |
|
label_names: |
|
- source_service |
|
- source_version |
|
- destination_service |
|
- destination_version |
|
- response_code |
|
- connection_mtls |
|
buckets: |
|
exponentialBuckets: |
|
numFiniteBuckets: 8 |
|
scale: 1 |
|
growthFactor: 10 |
|
- name: response_size |
|
instance_name: responsesize.metric.simple-auth-test-735b86b2602c47f7b428 |
|
kind: DISTRIBUTION |
|
label_names: |
|
- source_service |
|
- source_version |
|
- destination_service |
|
- destination_version |
|
- response_code |
|
- connection_mtls |
|
buckets: |
|
exponentialBuckets: |
|
numFiniteBuckets: 8 |
|
scale: 1 |
|
growthFactor: 10 |
|
- name: tcp_bytes_sent |
|
instance_name: tcpbytesent.metric.simple-auth-test-735b86b2602c47f7b428 |
|
kind: COUNTER |
|
label_names: |
|
- source_service |
|
- source_version |
|
- destination_service |
|
- destination_version |
|
- connection_mtls |
|
- name: tcp_bytes_received |
|
instance_name: tcpbytereceived.metric.simple-auth-test-735b86b2602c47f7b428 |
|
kind: COUNTER |
|
label_names: |
|
- source_service |
|
- source_version |
|
- destination_service |
|
- destination_version |
|
- connection_mtls |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: rule |
|
metadata: |
|
name: promhttp |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
labels: |
|
istio-protocol: http |
|
spec: |
|
actions: |
|
- handler: handler.prometheus |
|
instances: |
|
- requestcount.metric |
|
- requestduration.metric |
|
- requestsize.metric |
|
- responsesize.metric |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: rule |
|
metadata: |
|
name: promtcp |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
labels: |
|
istio-protocol: tcp # needed so that mixer will only execute when context.protocol == TCP |
|
spec: |
|
actions: |
|
- handler: handler.prometheus |
|
instances: |
|
- tcpbytesent.metric |
|
- tcpbytereceived.metric |
|
--- |
|
|
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: kubernetesenv |
|
metadata: |
|
name: handler |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
# when running from mixer root, use the following config after adding a |
|
# symbolic link to a kubernetes config file via: |
|
# |
|
# $ ln -s ~/.kube/config mixer/adapter/kubernetes/kubeconfig |
|
# |
|
# kubeconfig_path: "mixer/adapter/kubernetes/kubeconfig" |
|
|
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: rule |
|
metadata: |
|
name: kubeattrgenrulerule |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
actions: |
|
- handler: handler.kubernetesenv |
|
instances: |
|
- attributes.kubernetes |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: rule |
|
metadata: |
|
name: tcpkubeattrgenrulerule |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
match: context.protocol == "tcp" |
|
actions: |
|
- handler: handler.kubernetesenv |
|
instances: |
|
- attributes.kubernetes |
|
--- |
|
apiVersion: "config.istio.io/v1alpha2" |
|
kind: kubernetes |
|
metadata: |
|
name: attributes |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
spec: |
|
# Pass the required attribute data to the adapter |
|
source_uid: source.uid | "" |
|
source_ip: source.ip | ip("0.0.0.0") # default to unspecified ip addr |
|
destination_uid: destination.uid | "" |
|
origin_uid: '""' |
|
origin_ip: ip("0.0.0.0") # default to unspecified ip addr |
|
attribute_bindings: |
|
# Fill the new attributes from the adapter produced output. |
|
# $out refers to an instance of OutputTemplate message |
|
source.ip: $out.source_pod_ip | ip("0.0.0.0") |
|
source.labels: $out.source_labels | emptyStringMap() |
|
source.namespace: $out.source_namespace | "default" |
|
source.service: $out.source_service | "unknown" |
|
source.serviceAccount: $out.source_service_account_name | "unknown" |
|
destination.ip: $out.destination_pod_ip | ip("0.0.0.0") |
|
destination.labels: $out.destination_labels | emptyStringMap() |
|
destination.namespace: $out.destination_namespace | "default" |
|
destination.service: $out.destination_service | "unknown" |
|
destination.serviceAccount: $out.destination_service_account_name | "unknown" |
|
--- |
|
kind: ConfigMap |
|
metadata: |
|
annotations: |
|
kubectl.kubernetes.io/last-applied-configuration: | |
|
{"apiVersion":"v1","data":{"custom-resources.yaml":"apiVersion: \"config.istio.io/v1alpha2\"\nkind: attributemanifest\nmetadata:\n name: istioproxy\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n attributes:\n origin.ip:\n valueType: IP_ADDRESS\n origin.uid:\n valueType: STRING\n origin.user:\n valueType: STRING\n request.headers:\n valueType: STRING_MAP\n request.id:\n valueType: STRING\n request.host:\n valueType: STRING\n request.method:\n valueType: STRING\n request.path:\n valueType: STRING\n request.reason:\n valueType: STRING\n request.referer:\n valueType: STRING\n request.scheme:\n valueType: STRING\n request.size:\n valueType: INT64\n request.time:\n valueType: TIMESTAMP\n request.useragent:\n valueType: STRING\n response.code:\n valueType: INT64\n response.duration:\n valueType: DURATION\n response.headers:\n valueType: STRING_MAP\n response.size:\n valueType: INT64\n response.time:\n valueType: TIMESTAMP\n source.uid:\n valueType: STRING\n source.user:\n valueType: STRING\n destination.uid:\n valueType: STRING\n connection.id:\n valueType: STRING\n connection.received.bytes:\n valueType: INT64\n connection.received.bytes_total:\n valueType: INT64\n connection.sent.bytes:\n valueType: INT64\n connection.sent.bytes_total:\n valueType: INT64\n connection.duration:\n valueType: DURATION\n connection.mtls:\n valueType: BOOL\n context.protocol:\n valueType: STRING\n context.timestamp:\n valueType: TIMESTAMP\n context.time:\n valueType: TIMESTAMP\n api.service:\n valueType: STRING\n api.version:\n valueType: STRING\n api.operation:\n valueType: STRING\n api.protocol:\n valueType: STRING\n request.auth.principal:\n valueType: STRING\n request.auth.audiences:\n valueType: STRING\n request.auth.presenter:\n valueType: STRING\n request.api_key:\n valueType: STRING\n\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: attributemanifest\nmetadata:\n name: kubernetes\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n attributes:\n source.ip:\n valueType: IP_ADDRESS\n source.labels:\n valueType: STRING_MAP\n source.name:\n valueType: STRING\n source.namespace:\n valueType: STRING\n source.service:\n valueType: STRING\n source.serviceAccount:\n valueType: STRING\n destination.ip:\n valueType: IP_ADDRESS\n destination.labels:\n valueType: STRING_MAP\n destination.name:\n valueType: STRING\n destination.namespace:\n valueType: STRING\n destination.service:\n valueType: STRING\n destination.serviceAccount:\n valueType: STRING\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: stdio\nmetadata:\n name: handler\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n outputAsJson: true\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: logentry\nmetadata:\n name: accesslog\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n severity: '\"Default\"'\n timestamp: request.time\n variables:\n sourceIp: source.ip | ip(\"0.0.0.0\")\n destinationIp: destination.ip | ip(\"0.0.0.0\")\n sourceUser: source.user | \"\"\n method: request.method | \"\"\n url: request.path | \"\"\n protocol: request.scheme | \"http\"\n responseCode: response.code | 0\n responseSize: response.size | 0\n requestSize: request.size | 0\n latency: response.duration | \"0ms\"\n connectionMtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: rule\nmetadata:\n name: stdio\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n match: \"true\" # If omitted match is true.\n actions:\n - handler: handler.stdio\n instances:\n - accesslog.logentry\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: metric\nmetadata:\n name: requestcount\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n value: \"1\"\n dimensions:\n source_service: source.service | \"unknown\"\n source_version: source.labels[\"version\"] | \"unknown\"\n destination_service: destination.service | \"unknown\"\n destination_version: destination.labels[\"version\"] | \"unknown\"\n response_code: response.code | 200\n connection_mtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: metric\nmetadata:\n name: requestduration\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n value: response.duration | \"0ms\"\n dimensions:\n source_service: source.service | \"unknown\"\n source_version: source.labels[\"version\"] | \"unknown\"\n destination_service: destination.service | \"unknown\"\n destination_version: destination.labels[\"version\"] | \"unknown\"\n response_code: response.code | 200\n connection_mtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: metric\nmetadata:\n name: requestsize\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n value: request.size | 0\n dimensions:\n source_service: source.service | \"unknown\"\n source_version: source.labels[\"version\"] | \"unknown\"\n destination_service: destination.service | \"unknown\"\n destination_version: destination.labels[\"version\"] | \"unknown\"\n response_code: response.code | 200\n connection_mtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: metric\nmetadata:\n name: responsesize\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n value: response.size | 0\n dimensions:\n source_service: source.service | \"unknown\"\n source_version: source.labels[\"version\"] | \"unknown\"\n destination_service: destination.service | \"unknown\"\n destination_version: destination.labels[\"version\"] | \"unknown\"\n response_code: response.code | 200\n connection_mtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: metric\nmetadata:\n name: tcpbytesent\n namespace: simple-auth-test-735b86b2602c47f7b428\n labels:\n istio-protocol: tcp # needed so that mixer will only generate when context.protocol == tcp\nspec:\n value: connection.sent.bytes | 0\n dimensions:\n source_service: source.service | \"unknown\"\n source_version: source.labels[\"version\"] | \"unknown\"\n destination_service: destination.service | \"unknown\"\n destination_version: destination.labels[\"version\"] | \"unknown\"\n connection_mtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: metric\nmetadata:\n name: tcpbytereceived\n namespace: simple-auth-test-735b86b2602c47f7b428\n labels:\n istio-protocol: tcp # needed so that mixer will only generate when context.protocol == tcp\nspec:\n value: connection.received.bytes | 0\n dimensions:\n source_service: source.service | \"unknown\"\n source_version: source.labels[\"version\"] | \"unknown\"\n destination_service: destination.service | \"unknown\"\n destination_version: destination.labels[\"version\"] | \"unknown\"\n connection_mtls: connection.mtls | false\n monitored_resource_type: '\"UNSPECIFIED\"'\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: prometheus\nmetadata:\n name: handler\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n metrics:\n - name: request_count\n instance_name: requestcount.metric.simple-auth-test-735b86b2602c47f7b428\n kind: COUNTER\n label_names:\n - source_service\n - source_version\n - destination_service\n - destination_version\n - response_code\n - connection_mtls\n - name: request_duration\n instance_name: requestduration.metric.simple-auth-test-735b86b2602c47f7b428\n kind: DISTRIBUTION\n label_names:\n - source_service\n - source_version\n - destination_service\n - destination_version\n - response_code\n - connection_mtls\n buckets:\n explicit_buckets:\n bounds: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10]\n - name: request_size\n instance_name: requestsize.metric.simple-auth-test-735b86b2602c47f7b428\n kind: DISTRIBUTION\n label_names:\n - source_service\n - source_version\n - destination_service\n - destination_version\n - response_code\n - connection_mtls\n buckets:\n exponentialBuckets:\n numFiniteBuckets: 8\n scale: 1\n growthFactor: 10\n - name: response_size\n instance_name: responsesize.metric.simple-auth-test-735b86b2602c47f7b428\n kind: DISTRIBUTION\n label_names:\n - source_service\n - source_version\n - destination_service\n - destination_version\n - response_code\n - connection_mtls\n buckets:\n exponentialBuckets:\n numFiniteBuckets: 8\n scale: 1\n growthFactor: 10\n - name: tcp_bytes_sent\n instance_name: tcpbytesent.metric.simple-auth-test-735b86b2602c47f7b428\n kind: COUNTER\n label_names:\n - source_service\n - source_version\n - destination_service\n - destination_version\n - connection_mtls\n - name: tcp_bytes_received\n instance_name: tcpbytereceived.metric.simple-auth-test-735b86b2602c47f7b428\n kind: COUNTER\n label_names:\n - source_service\n - source_version\n - destination_service\n - destination_version\n - connection_mtls\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: rule\nmetadata:\n name: promhttp\n namespace: simple-auth-test-735b86b2602c47f7b428\n labels:\n istio-protocol: http\nspec:\n actions:\n - handler: handler.prometheus\n instances:\n - requestcount.metric\n - requestduration.metric\n - requestsize.metric\n - responsesize.metric\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: rule\nmetadata:\n name: promtcp\n namespace: simple-auth-test-735b86b2602c47f7b428\n labels:\n istio-protocol: tcp # needed so that mixer will only execute when context.protocol == TCP\nspec:\n actions:\n - handler: handler.prometheus\n instances:\n - tcpbytesent.metric\n - tcpbytereceived.metric\n---\n\napiVersion: \"config.istio.io/v1alpha2\"\nkind: kubernetesenv\nmetadata:\n name: handler\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n # when running from mixer root, use the following config after adding a\n # symbolic link to a kubernetes config file via:\n #\n # $ ln -s ~/.kube/config mixer/adapter/kubernetes/kubeconfig\n #\n # kubeconfig_path: \"mixer/adapter/kubernetes/kubeconfig\"\n\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: rule\nmetadata:\n name: kubeattrgenrulerule\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n actions:\n - handler: handler.kubernetesenv\n instances:\n - attributes.kubernetes\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: rule\nmetadata:\n name: tcpkubeattrgenrulerule\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n match: context.protocol == \"tcp\"\n actions:\n - handler: handler.kubernetesenv\n instances:\n - attributes.kubernetes\n---\napiVersion: \"config.istio.io/v1alpha2\"\nkind: kubernetes\nmetadata:\n name: attributes\n namespace: simple-auth-test-735b86b2602c47f7b428\nspec:\n # Pass the required attribute data to the adapter\n source_uid: source.uid | \"\"\n source_ip: source.ip | ip(\"0.0.0.0\") # default to unspecified ip addr\n destination_uid: destination.uid | \"\"\n origin_uid: '\"\"'\n origin_ip: ip(\"0.0.0.0\") # default to unspecified ip addr\n attribute_bindings:\n # Fill the new attributes from the adapter produced output.\n # $out refers to an instance of OutputTemplate message\n source.ip: $out.source_pod_ip | ip(\"0.0.0.0\")\n source.labels: $out.source_labels | emptyStringMap()\n source.namespace: $out.source_namespace | \"default\"\n source.service: $out.source_service | \"unknown\"\n source.serviceAccount: $out.source_service_account_name | \"unknown\"\n destination.ip: $out.destination_pod_ip | ip(\"0.0.0.0\")\n destination.labels: $out.destination_labels | emptyStringMap()\n destination.namespace: $out.destination_namespace | \"default\"\n destination.service: $out.destination_service | \"unknown\"\n destination.serviceAccount: $out.destination_service_account_name | \"unknown\"\n---"},"kind":"ConfigMap","metadata":{"annotations":{},"labels":{"app":"istio-mixer","chart":"mixer-0.8.0","heritage":"Tiller","istio":"mixer","release":"RELEASE-NAME"},"name":"istio-mixer-custom-resources","namespace":"simple-auth-test-735b86b2602c47f7b428"}} |
|
creationTimestamp: 2018-05-16T21:37:30Z |
|
labels: |
|
app: istio-mixer |
|
chart: mixer-0.8.0 |
|
heritage: Tiller |
|
istio: mixer |
|
release: RELEASE-NAME |
|
name: istio-mixer-custom-resources |
|
namespace: simple-auth-test-735b86b2602c47f7b428 |
|
resourceVersion: "3696467" |
|
selfLink: /api/v1/namespaces/simple-auth-test-735b86b2602c47f7b428/configmaps/istio-mixer-custom-resources |
|
uid: 55d1e7a3-5951-11e8-86c2-005056bcada2 |