Skip to content

Instantly share code, notes, and snippets.

View ams0's full-sized avatar
🏠
Working from home

Alessandro Vozza ams0

🏠
Working from home
View GitHub Profile
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.8",
"kubernetesConfig": {
"networkPolicy": "calico",
"clusterSubnet": "172.16.38.0/23"
}
#Azure point to site on a Mac
#create RG
az group create -n vpnet
#create network and subnet
az network vnet create -g vpnet -n VNet1 --address-prefixes 192.168.0.0/16 --subnet-name FrontEnd --subnet-prefix 192.168.1.0/24
az network vnet subnet create -n GatewaySubnet --address-prefix 192.168.200.0/24 --vnet-name VNet1 -g vpnet
#create a public ip
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.8",
"kubernetesConfig": {
"enableRbac": true
}
},
Verifying my Blockstack ID is secured with the address 1DgWxERnV6kudD32S1JqV8kZjUyZC3hLiF https://explorer.blockstack.org/address/1DgWxERnV6kudD32S1JqV8kZjUyZC3hLiF
@ams0
ams0 / Dockerfile
Last active January 18, 2018 20:37
# This dockerfile utilizes components licensed by their respective owners/authors.
FROM microsoft/dotnet:2.0.0-runtime-nanoserver-1709
LABEL Description="IIS" Vendor="Microsoft" Version="10"
CMD [ "ping", "localhost", "-t" ]
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes"
},
"masterProfile": {
"count": 1,
"dnsPrefix": "cloverfield",
"vmSize": "Standard_D2_v2"
@ams0
ams0 / hybrid.json
Created February 22, 2018 10:20
Windows+Linux hybrid kubernetes cluster on 1.9 with acs-engine
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.9"
},
"masterProfile": {
"count": 1,
"dnsPrefix": "cloverfield",
@ams0
ams0 / Dockerfile
Created March 1, 2018 20:37
simple dockerfile because nano server doesn't have a text editor
FROM microsoft/windowsservercore:1709
ENV chocolateyUseWindowsCompression false
RUN powershell -Command \
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"defaultValue": "azureuser",
"metadata": {
"description": "User name for the Virtual Machine."
}
#!/bin/bash
#install Gitlab CE
yum -y update
yum install -y curl policycoreutils-python epel-release
yum -y install nginx
yum install -y postfix
systemctl enable postfix
systemctl start postfix