This file contains 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
ROLES_MANIFEST = ''' | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
namespace: {namespace} | |
name: serviceaccount-getter | |
rules: | |
- apiGroups: [""] | |
resources: ["*"] |
This file contains 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
#!/usr/bin/env bash | |
set -ex | |
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add - | |
sudo apt-get install apt-transport-https --yes | |
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list | |
sudo apt-get update | |
sudo apt-get install helm |
This file contains 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
#!/bin/bash -ex | |
apt-get update | |
apt-get remove -y \ | |
docker \ | |
docker-engine \ | |
docker.io \ | |
containerd \ | |
runc || true | |
apt-get install -y \ |
This file contains 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
#!/bin/bash -x | |
echo Set localhost or public IP. | |
echo 1 | |
HOSTNAME=rancher.k3d.localhost | |
HOSTNAME=rancher.$(ip a s eth0 | awk '/inet / {print $2}' | sed -e 's|/.*||').nip.io | |
### 1. Create a cluster with k3d that connects port 443 to the loadbalancer provided by k3d | |
k3d cluster create k3d-rancher --api-port 6550 --servers 1 --agents 3 --port 443:443@loadbalancer --wait | |
k3d cluster list |
This file contains 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
# Grok pattern for Restlet log entry. Only for the first 14 fields. | |
# | |
# 1. Date (YYYY-MM-DD) | |
# 2. Time (HH:MM:SS) | |
# 3. Client address (IP) | |
# 4. Remote user identifier (see RFC 1413) | |
# 5. Server address (IP) | |
# 6. Server port | |
# 7. Method (GET|POST|...) | |
# 8. Resource reference path (including the leading slash) |