Skip to content

Instantly share code, notes, and snippets.

View franc01s's full-sized avatar

François franc01s

  • Ducksify
  • Lausanne, Switzerland
View GitHub Profile
$ADGRP="CN=Domain Admins,CN=Users,DC=itslab,DC=local"
$memberof = (New-Object System.DirectoryServices.DirectorySearcher("(&(objectCategory=User)(samAccountName=$($env:username)))")).FindOne().GetDirectoryEntry().memberOf
if ($memberof.Contains($ADGRP)) {
write("Catch")
}
else{
write("NoCatch")
}

Keybase proof

I hereby claim:

  • I am franc01s on github.
  • I am francoisegger (https://keybase.io/francoisegger) on keybase.
  • I have a public key ASAALlLCgYhRExdkkF6b6kDKjiWTECUNB40YaXzQXPCrJQo

To claim this, I am signing this object:

@franc01s
franc01s / K8s-DigitalOcean-CoreOS.md
Created November 13, 2018 23:17 — forked from kevashcraft/K8s-DigitalOcean-CoreOS.md
How to Setup Kubernetes on DigitalOcean with CoreOS

Kubernetes on DigitalOcean with CoreOS

Let's look at an example of how to launch a Kubernetes cluster from scratch on DigitalOcean, including kubeadm, an Nginx Ingress controller, and Letsencrypt certificates.

Overview

Environment

We'll be creating a four-node cluster (k8s-master, k8s-000...k8s-002), load balancer, and ssl certificates.

Table of Contents

  1. Install Kubernetes