Skip to content

Instantly share code, notes, and snippets.

@superseb
superseb / metrics-server-rancher20.md
Last active April 23, 2020 20:38
Enabling metrics-server on Rancher 2.0

Enabling metrics-server on Rancher 2.0

IMPORTANT: metrics-server is included by default in custom clusters in Rancher v2.0.7 and higher, these steps are not needed when clusters are created using Rancher v2.0.7 or higher.

Create cluster via Edit as YAML in custom cluster

  kube_api: 
    pod_security_policy: false
    extra_args:
@nikhita
nikhita / update-golang.md
Last active May 20, 2024 11:47
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@cjellick
cjellick / commands.sh
Last active June 30, 2017 21:55
webhook stuff
# CREATE
curl -i -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
http://192.168.2.8:8080/v1-webhooks/receivers?projectId=1a5 \
-X POST -d '{"name": "scale up 6 by 1", "driver": "scaleService", "scaleServiceConfig": {"action": "up", "amount": 1, "serviceId": "1s6"}}'
# CREATE WITH LOCAL AUTH ENABLE and passed as cookie
curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' \
--cookie 'PL=rancher; CSRF=D2ACB843C3; token=<token>' http://138.197.29.231:8080/v1-webhooks/receivers?projectId=1a5 \
-X POST -d '{"name": "scale up 6 by 1", "driver": "scaleService", "scaleServiceConfig": {"action": "up", "amount": 1, "serviceId": "1s6"}}'