Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrian Wyssmann papanito

View GitHub Profile
@papanito
papanito / rancher-argocd.md
Created Jun 11, 2020 — forked from janeczku/rancher-argocd.md
How to register Rancher managed Kubernetes clusters in Argo CD
View rancher-argocd.md

How to register Rancher managed Kubernetes clusters in Argo CD

Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.

Hint: If you are just looking for the solution scroll to the bottom of this page.

Why do i get an error when running argocd cluster add?

Service Account tokens and the Rancher authentication proxy

@papanito
papanito / k8s-metricbeat.values.yaml
Last active Jun 9, 2020
An example `values.yaml` for installing `helm install k8s-metricbeat stable/metricbeat --namespace kube-system -f k8s-metricbeat.values.yaml`. It does not yet include shipping secret
View k8s-metricbeat.values.yaml
# The instances created by daemonset retrieve most metrics from the host
daemonset:
enabled: true
podAnnotations: []
priorityClassName: ""
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
nodeSelector: {}
View gist:1664fa452087e3ae91bafd73a74b2edd
https://www.sslshopper.com/certificate-key-matcher.html
CERT=xx.pem
CSR=dev-xx.csr
KEY=dev-xx.key
openssl pkey -in $KEY -pubout -outform pem | sha256sum
openssl x509 -in $CERT -pubkey -noout -outform pem | sha256sum
openssl req -in $CSR -pubkey -noout -outform pem | sha256sum
@papanito
papanito / using_git-svn.md
Last active May 17, 2018 — forked from rickyah/using_git-svn.md
A simple guide to git-svn
View using_git-svn.md

Getting started with git-svn

git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.

Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion

Cloning the SVN repository

You need to create a new local copy of the repository with the command

View arch.conf
title Arch Linux (Standard)
linux /vmlinuz-linux
initrd /initramfs-linux.img
options luks.uuid=556bf1e4-3730-4da3-8688-0f3c468bf5bb luks.crypttab=yes resume=/dev/mapper/CryptVol-swap root=/dev/mapper/CryptVol-root rw
View tlp
# ------------------------------------------------------------------------------
# tlp - Parameters for power save
# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html
# Hint: some features are disabled by default, remove the leading # to enable
# them.
# Set to 0 to disable, 1 to enable TLP.
TLP_ENABLE=1
You can’t perform that action at this time.