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
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
#!/bin/sh
# Install Docker CE
## Set up the repository:
### Install packages to allow apt to use a repository over HTTPS
apt-get update && apt-get install apt-transport-https ca-certificates curl software-properties-common
### Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
@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:
# 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.
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
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
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
# (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 \
# 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