Skip to content

Instantly share code, notes, and snippets.

@arapulido
arapulido / dashboard.json
Last active April 23, 2024 14:00
Dashboard for right-sizing workshop
{"title":"K8s right-sizing - Workshop","description":"[[suggested_dashboards]]","widgets":[{"id":8514541746519518,"definition":{"title":"Service and cluster metrics and events","background_color":"vivid_blue","show_title":true,"type":"group","layout_type":"ordered","widgets":[{"id":2150930641154234,"definition":{"title":"P95 latency per service","title_size":"16","title_align":"left","show_legend":true,"legend_layout":"auto","legend_columns":["avg","min","max","value","sum"],"type":"timeseries","requests":[{"formulas":[{"formula":"query1"}],"queries":[{"name":"query1","data_source":"metrics","query":"p95:trace.flask.request{$service}"}],"response_format":"timeseries","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"},"display_type":"line"}]},"layout":{"x":0,"y":0,"width":4,"height":2}},{"id":8746766598521700,"definition":{"title":"Relevant Events in our Cluster","title_size":"16","title_align":"left","show_legend":true,"legend_layout":"auto","legend_columns":["avg","min","max","value"
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: simple
spec:
rules:
- host: "foo.bar.com"
http:
paths:
- pathType: Prefix
@arapulido
arapulido / datadog_at_kubecon.md
Last active November 4, 2022 09:22
Datadog Kubecon talks
@arapulido
arapulido / gist:66c026043fbd88fe5e9b183afcc35288
Created June 14, 2018 14:03
Cloud-SQL MySQL basic - ClusterServicePlan YAML
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ClusterServicePlan
metadata:
creationTimestamp: 2018-06-14T09:56:53Z
name: 9f62358e-ffb4-4fc5-b7a5-90462c15ce55
resourceVersion: "69"
selfLink: /apis/servicecatalog.k8s.io/v1beta1/clusterserviceplans/9f62358e-ffb4-4fc5-b7a5-90462c15ce55
uid: 43bc33aa-6fb9-11e8-84d3-0a580a14020d
spec:
bindable: true
@arapulido
arapulido / gist:ef55b57f86d71dc1675ef583975cfa20
Created February 19, 2018 10:41
Logs for apprepository-controller RBAC error
W0219 09:15:19.953567 1 client_config.go:529] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0219 09:15:19.956001 1 controller.go:123] Setting up event handlers
I0219 09:15:19.956176 1 controller.go:164] Starting AppRepository controller
I0219 09:15:19.956201 1 controller.go:167] Waiting for informer caches to sync
I0219 09:15:20.056385 1 controller.go:172] Starting workers
I0219 09:15:20.056443 1 controller.go:178] Started workers
I0219 09:15:20.094411 1 controller.go:234] Successfully synced 'kubeapps/incubator'
I0219 09:15:20.095176 1 event.go:218] Event(v1.ObjectReference{Kind:"AppRepository", Namespace:"kubeapps", Name:"incubator", UID:"4d731a38-1555-11e8-bb30-0800278ecf20", APIVersion:"kubeapps.com/v1alpha1", ResourceVersion:"412", FieldPath:""}): type: 'Normal' reason: 'Synced' AppRepository synced successfully
I0219 09:15:20.103488 1 controller.go:234] Successfully synced 'kubeapps/stable'
I0219

Keybase proof

I hereby claim:

  • I am arapulido on github.
  • I am arapulido (https://keybase.io/arapulido) on keybase.
  • I have a public key ASAlxDnXyJrhXWj3FTg83iK_ecCUTiqSP190h6EW-3QwDwo

To claim this, I am signing this object: