Skip to content

Instantly share code, notes, and snippets.

View mehmetafsar510's full-sized avatar

Mehmet AFŞAR mehmetafsar510

  • İstanbul
View GitHub Profile
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-service.monitoring:9090
access: proxy
isDefault: true
@ScriptingSquirrel
ScriptingSquirrel / install-kubernetes-dashboard-ingress-enabled.md
Last active March 4, 2022 08:48
Install Ingress-enabled kubernetes-dashboard using Helm

Problem

$ helm install kubernetes-dashboard stable/kubernetes-dashboard --namespace MY_NAMESPACE --set ingress.enabled=true --set ingress.hosts={MYDASHBOARD.EXAMPLE.COM} --set-string ingress.annotations."nginx\.ingress\.kubernetes\.io/secure-backends"="true"
Error: UPGRADE FAILED: failed to create patch: failed to get versionedObject: unable to convert unstructured object to extensions/v1beta1, Kind=Ingress: unrecognized type: string

NB: A fix for the --set-string flag is on the way: helm/helm#4142

Workaround

@badsyntax
badsyntax / haproxy.1.cfg
Last active September 19, 2022 09:38
Some example haproxy configs
# SSL termination at proxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy