This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Source: smi-metrics/templates/config.yaml | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
labels: | |
app.kubernetes.io/name: smi-metrics | |
helm.sh/chart: smi-metrics-0.1.0 | |
app.kubernetes.io/instance: dev | |
app.kubernetes.io/managed-by: Tiller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind":"TrafficMetrics", | |
"apiVersion":"metrics.smi-spec.io/v1alpha1", | |
"metadata":{ | |
"name":"linkerd-controller", | |
"namespace":"linkerd", | |
"selfLink":"/apis/metrics.smi-spec.io/v1alpha1/namespaces/linkerd/deployments/linkerd-controller", | |
"creationTimestamp":"2019-06-04T11:47:54Z" | |
}, | |
"timestamp":"2019-06-04T11:47:54Z", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME SHORTNAMES APIGROUP NAMESPACED KIND | |
bindings true Binding | |
componentstatuses cs false ComponentStatus | |
configmaps cm true ConfigMap | |
endpoints ep true Endpoints | |
events ev true Event | |
limitranges limits true LimitRange | |
namespaces ns false Namespace | |
nodes no false Node | |
persistentvolumeclaims pvc true PersistentVolumeClaim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME SHORTNAMES APIGROUP NAMESPACED KIND | |
bindings true Binding | |
componentstatuses cs false ComponentStatus | |
configmaps cm true ConfigMap | |
endpoints ep true Endpoints | |
events ev true Event | |
limitranges limits true LimitRange | |
namespaces ns false Namespace | |
nodes no false Node | |
persistentvolumeclaims pvc true PersistentVolumeClaim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{with .Values -}} | |
--- | |
### | |
### Proxy Injector | |
### | |
--- | |
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: linkerd-proxy-injector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Mesh interface { | |
GetSupportedResources(ctx context.Context) (*metav1.APIResourceList, error) | |
GetResourceMetrics(ctx context.Context, name, namespace, kind string, interval *metrics.Interval) (*metrics.TrafficMetricsList, error) | |
GetEdgeMetrics(ctx context.Context, name, namespace, kind string, details ResourceDetails, interval *metrics.Interval) (*metrics.TrafficMetricsList, error) | |
} | |
---------- | |
main.go | |
if viper.GetString("mesh") == "linkerd" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mesh: Linkerd | |
config: | |
prometheus-url: http://linkerd-prometheus.linkerd.svc.cluster.local:9090 | |
resourceQueries: | |
p99_response_latency : |- | |
histogram_quantile( | |
0.99, | |
sum( | |
irate( | |
response_latency_ms_bucket{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: reviews-v2 | |
spec: | |
selector: | |
app: reviews | |
version: v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: reviews-v2 | |
spec: | |
selector: | |
app: reviews | |
version: v2 | |
ports: | |
- protocol: TCP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: split.smi-spec.io/v1alpha1 | |
kind: TrafficSplit | |
metadata: | |
name: reviews-rollout | |
spec: | |
service: reviews | |
backends: | |
- service: reviews-v2 | |
weight: 500m | |
- service: reviews-v3 |