Skip to content

Instantly share code, notes, and snippets.

View yudaykiran's full-sized avatar
💻

Uday Kiran yudaykiran

💻
View GitHub Profile
#!/bin/bash
# some variables
# refactoring the script such that all these values are
# passed from the outside as arguments should be easy
# SMTP_HOST
# SMTP_USER
# SMTP_FROM
# SMTP_PASSWORD
#!/bin/bash
rtmp_url="smtp://smtp.gmail.com:587"
rtmp_from="[email protected]"
rtmp_to="[email protected]"
rtmp_credentials="[email protected]:secretpassword"
file_upload="data.txt"
echo "From: Some Name <$rtmp_from>
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: elasticsearch-logging
labels:
k8s-app: elasticsearch-logging
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
rules:
- apiGroups:
- ""
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: elasticsearch-logging
labels:
k8s-app: elasticsearch-logging
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
rules:
- apiGroups:
- ""
# need more cpu upon initialization, therefore burstable class
limits:
cpu: 1000m
requests:
cpu: 100m
ports:
- containerPort: 9200
name: db
protocol: TCP
- containerPort: 9300
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
TASK [volume : Update Target Portal] *******************************************
task path: /ansible/roles/volume/tasks/main.yml:23
ok: [localhost -> None] => {
"ansible_facts": {
"target_portal": "172.28.128.11"
},
"changed": false,
"invocation": {
"module_args": {
"target_portal": "172.28.128.11"
roles/first/tasks/main.yml
- name: Update Target Portal
set_fact:
target_portal: "{{result.stdout}}"
delegate_to: "{{hostvars[groups['master'][0]]['ansible_ssh_host']}}"
roles/second/tasks/main.yml
- name: Establish ISCSI Connection
---
apiVersion: v1
kind: Pod
metadata:
name: mysql
labels:
name: mysql
spec:
containers:
- resources:

Automating Kubernetes Cluster Setup with Vagrant for Ubuntu 16.04

This document explains the construction of a basic kubernetes cluster setup of:

  1. One Master Node
  2. Two Minion Nodes

Getting Started

Setting up Kubernetes was a complicated task until the recent release of Kubernetes 1.4. Kubernetes 1.4+ includes a tool called kubeadm which eases the process of setting up a cluster between the nodes.We are going to setup this cluster using the Kubernetes binaries instead of cloning from the repository.