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
@ams0
ams0 / acs-engine.json
Created March 13, 2018 19:27
acs-engine+aad+monitoring+rbac
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.9",
"kubernetesConfig": {
"enableRbac": true,
"networkPolicy": "calico",
"enableAggregatedAPIs": true
az group create -n gitlab
az network nsg create -g gitlab -n GitlabNSG
az network nsg rule create --nsg-name GitlabNSG -g gitlab --name allow-https --description "HTTPS" --protocol tcp --priority 100 --destination-port-range "443"
az network public-ip create -n GitlabIP -g gitlab --allocation-method static --dns-name gitlabci
#set DNS record in your domain
az network dns record-set a add-record -n ci -g dns -z qubernetes.com --ipv4-address `az network public-ip list -g gitlab -o tsv|awk '{print $4}'`
wget https://gist.githubusercontent.com/ams0/304867d9a6ae7e31ef01820e0f0f8dd8/raw/abf539128ef3944a08a3414cb98ebbc411c8b77d/deploy-gitlab-ce.sh
#!/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
{
"$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."
}
@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
@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",
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes"
},
"masterProfile": {
"count": 1,
"dnsPrefix": "cloverfield",
"vmSize": "Standard_D2_v2"
@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" ]
Verifying my Blockstack ID is secured with the address 1DgWxERnV6kudD32S1JqV8kZjUyZC3hLiF https://explorer.blockstack.org/address/1DgWxERnV6kudD32S1JqV8kZjUyZC3hLiF
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.8",
"kubernetesConfig": {
"enableRbac": true
}
},