Skip to content

Instantly share code, notes, and snippets.

View PascalKu's full-sized avatar
👋
Hey whazzup?

Pascal Kutscha PascalKu

👋
Hey whazzup?
  • Aachen, Germany
View GitHub Profile
16:12:51.938 -> SketchSize: 494272 B
16:12:51.938 -> FreeSketchSpace: 466944 B
16:12:51.938 -> FlashChipSize: 4194304 B
16:12:51.938 -> FlashChipRealSize: 4194304 B
16:12:51.938 -> FlashChipSpeed: 40000000
16:12:51.938 -> SdkVersion: 2.2.2-dev(38a443e)
16:12:51.938 -> FullVersion: SDK:2.2.2-dev(38a443e)/Core:3.1.2=30102000/lwIP:STABLE-2_1_3_RELEASE/glue:1.2-65-g06164fb/BearSSL:b024386
16:12:51.938 -> CpuFreq: 80MHz
16:12:51.938 -> FreeHeap: 44608 B
16:12:51.938 -> ResetInfo: External System
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <FastLED.h>
#include <arduino_homekit_server.h>
#define FASTLED_ESP32_SPI_BUS HSPI
#define DATA_PIN 13
#define LED_RGB_SCALE 255 // this is the scaling factor used for color conversion
#define NUM_LEDS 5
# WARNING: For PHP 7 the module name in the line below need to be modified!
<IfModule mod_php7.c>
php_flag display_errors Off
php_flag log_errors On
# php_value error_log logs/errors
php_value upload_max_filesize 25M
php_value post_max_size 26M
php_value memory_limit 64M
# (Install Docker CE)
## Set up the repository:
### Install packages to allow apt to use a repository over HTTPS
apt-get update && apt-get install -y \
apt-transport-https ca-certificates curl software-properties-common gnupg2
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
# Add the Docker apt repository:
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
Waiting for apiserver to come up
+++ [0525 17:32:57] On try 6, apiserver: : ok
clusterrolebinding.rbac.authorization.k8s.io/kube-apiserver-kubelet-admin created
clusterrolebinding.rbac.authorization.k8s.io/kubelet-csr created
Cluster "local-up-cluster" set.
use 'kubectl --kubeconfig=/var/run/kubernetes/admin-kube-aggregator.kubeconfig' to use the aggregated API server
service/kube-dns created
serviceaccount/kube-dns created
configmap/kube-dns created
deployment.apps/kube-dns created
I0524 22:37:39.397719 86129 feature_gate.go:243] feature gates: &{map[APIPriorityAndFairness:false AllAlpha:false AnyVolumeDataSource:false BalanceAttachedNodeVolumes:false BoundServiceAccountTokenVolume:false CSIMigrationAWSComplete:false CSIMigrationAzureDisk:false CSIMigrationAzureDiskComplete:false CSIMigrationAzureFile:false CSIMigrationAzureFileComplete:false CSIMigrationGCEComplete:false CSIMigrationOpenStackComplete:false ConfigurableFSGroupPolicy:false CustomCPUCFSQuotaPeriod:false DynamicAuditing:false EndpointSliceProxying:false EphemeralContainers:false HPAScaleToZero:false HugePageStorageMediumSize:false HyperVContainer:false IPv6DualStack:false LocalStorageCapacityIsolationFSQuotaMonitoring:false NonPreemptingPriority:false ProcMountType:false QOSReserved:false RemoveSelfLink:false ResourceLimitsPriorityFunction:false SCTPSupport:false SelectorIndex:false ServiceAccountIssuerDiscovery:false ServiceTopology:false TTLAfterFinished:false WinDSR:false WinOverlay:false]}
Flag --insecure-bind-addres
sudo apt install -y puppet-agent
echo "[main]
#certname = puppetagent
server = puppet-master
environment = production
runinterval = 1m" >> /etc/puppetlabs/puppet/puppet.conf
sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
# Install Docker CE
## Set up the repository:
### Install packages to allow apt to use a repository over HTTPS
apt-get update && apt-get install -y \
apt-transport-https ca-certificates curl software-properties-common gnupg2
### Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
### Add Docker apt repository.
@PascalKu
PascalKu / haproxy-deployment.yaml
Created March 8, 2020 20:53
haproxy deployment as loadbalancer.
---
apiVersion: v1
kind: Namespace
metadata:
name: haproxy-controller
---
apiVersion: v1
kind: ServiceAccount
metadata:
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2