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
ssh-keygen -t rsa | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/home/pi/.ssh/id_rsa): | |
Enter passphrase (empty for no passphrase): | |
Enter same passphrase again: | |
Your identification has been saved in /home/pi/.ssh/id_rsa. | |
Your public key has been saved in /home/pi/.ssh/id_rsa.pub. | |
The key fingerprint is: | |
SHA256:aXJj4P/GE24a1vSQbwXhISxZqRvD1RhFOqFXz85Y4Eg pi@pi-node1 | |
The key's randomart image is: |
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
Host master | |
Hostname 10.0.0.100 | |
Port 22 | |
User pi | |
Host node1 | |
Hostname localhost | |
Port 13000 | |
User pi | |
Host node2 | |
Hostname localhost |
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
helm install stable/traefik --name my-traefik-release --set dashboard.enabled=true,serviceType=NodePort,dashboard.domain=dashboard.traefik,rbac.enabled=true,externalIP=10.0.0.100 --namespace kube-system | |
NAME: my-traefik-release | |
LAST DEPLOYED: Sat Mar 14 12:26:59 2020 | |
NAMESPACE: kube-system | |
STATUS: DEPLOYED | |
RESOURCES: | |
==> v1/Pod(related) | |
NAME READY STATUS RESTARTS AGE | |
my-traefik-release-6b44b7f698-s982p 0/1 ContainerCreating 0 0s |
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
someuser:Traefik$ ks get svc -o wide | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR | |
... | |
my-traefik-release NodePort 10.97.220.150 10.0.0.100 80:31214/TCP,443:30308/TCP 155m app=traefik,release=my-traefik-release | |
my-traefik-release-dashboard ClusterIP 10.98.204.144 <none> 80/TCP 156m app=traefik,release=my-traefik-release | |
someuser:Traefik$ ks describe svc my-traefik-release | |
Name: my-traefik-release | |
Namespace: kube-system | |
Labels: app=traefik |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: whoami-ingress | |
annotations: | |
kubernetes.io/ingress.class: traefik | |
spec: | |
rules: | |
- host: whoami.localhost | |
http: |
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
curl http://whoami.localhost | |
Hostname: whoami-deployment-69b7cb56cf-jg6tv | |
IP: 127.0.0.1 | |
IP: 10.244.3.80 | |
GET / HTTP/1.1 | |
Host: whoami.localhost | |
User-Agent: curl/7.64.1 | |
Accept: */* | |
Accept-Encoding: gzip | |
X-Forwarded-For: 10.244.0.0 |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
# Telegraf Configuration | |
# | |
# Telegraf is entirely plugin driven. All metrics are gathered from the | |
# declared inputs, and sent to the declared outputs. | |
# | |
# Plugins must be declared in here to be active. | |
# To deactivate a plugin, comment out the name and any variables. | |
# | |
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config | |
# file would generate. |
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
// | |
// Copyright (c) 2021 Richard Youngkin. All rights reserved. | |
// Use of this source code is governed by a MIT-style | |
// license that can be found in the LICENSE file. | |
// | |
// Run using 'go run blinkingled.go' | |
// | |
package main | |
import ( |
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
// Copyright (c) 2021 Richard Youngkin. All rights reserved. | |
// Use of this source code is governed by a MIT-style | |
// license that can be found in the LICENSE file. | |
// | |
// Build - gcc -o rgbled rgbled.c -lwiringPi -lpthread | |
// | |
#include <wiringPi.h> | |
#include <softPwm.h> | |
#include <stdio.h> | |
#include <signal.h> |
OlderNewer