Skip to content

Instantly share code, notes, and snippets.

salqadri

Block or report user

Report or block salqadri

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View k8s_node_kubeadm_init.sh
# Make sure you are NOT root for these commands! But it must be a sudoer user.
# Open the ports you need to expose outside the node
#sudo firewall-cmd --zone=public --add-port=6443/tcp --permanent # Kubernetes API server
#sudo firewall-cmd --zone=public --add-port=2379-2380/tcp --permanent # etcd server client API
#sudo firewall-cmd --zone=public --add-port=10250/tcp --permanent # Kubelet API
#sudo firewall-cmd --zone=public --add-port=10251/tcp --permanent # kube-scheduler
#sudo firewall-cmd --zone=public --add-port=10252/tcp --permanent # kube-controller-manager
#sudo firewall-cmd --reload
View k8s_node_setup_centos7.sh
sudo -i # Become root
sudo yum update -y # Update all packages
# Install the yum-config-manager and add the repo to install docker
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# Configure iptables for Kubernetes
cat <<EOF > /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
View firebase.h
// Copyright 2017 Google Inc.
// Though this is NOT an officially supported Google product!
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
You can’t perform that action at this time.