Skip to content

Instantly share code, notes, and snippets.

View yanniszark's full-sized avatar
🤹‍♂️
overcommitting

Yannis Zarkadas yanniszark

🤹‍♂️
overcommitting
View GitHub Profile
# This is the config to install Kubeflow on an existing K8s cluster, with support
# for multi-user and LDAP auth using Dex.
apiVersion: kfdef.apps.kubeflow.org/v1alpha1
kind: KfDef
metadata:
name: demo
namespace: kubeflow
spec:
applications:
@yanniszark
yanniszark / kfdef.yaml
Last active September 4, 2019 17:40
kfdef example
apiVersion: kubeflow.org/v1alpha1
kind: KfDef
spec:
applications:
- name:
kustomizeConfig:
name: jupyter-web-app
overlays:
- istio
repoRef:
@yanniszark
yanniszark / envoyfilter.yaml
Created July 18, 2019 14:59
Envoy Filter ext_authz example
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: authn-filter
spec:
workloadLabels:
istio: ingressgateway
filters:
- filterConfig:
httpService:
@yanniszark
yanniszark / dex-config-ldap-partial.yaml
Created June 13, 2019 13:38
Dex LDAP Connector Config
connectors:
- type: ldap
# Required field for connector id.
id: ldap
# Required field for connector name.
name: LDAP
config:
# Host and optional port of the LDAP server in the form "host:port".
# If the port is not supplied, it will be guessed based on "insecureNoSSL",
# and "startTLS" flags. 389 for insecure or StartTLS connections, 636
@yanniszark
yanniszark / ldap-seed.ldif
Created June 13, 2019 13:22
LDAP Seed File
# This already exists.
# If it doesn't, uncomment this.
#dn: dc=arrikto,dc=com
#objectClass: dcObject
#objectClass: organization
#o: Arrikto
#dc: arrikto
dn: ou=People,dc=arrikto,dc=com
objectClass: organizationalUnit
@yanniszark
yanniszark / ldap.yaml
Created June 13, 2019 13:20
Sample LDAP Server + phpLDAPadmin
apiVersion: v1
kind: Service
metadata:
labels:
app: ldap
name: ldap-service
namespace: kubeflow
spec:
type: ClusterIP
clusterIP: None
@yanniszark
yanniszark / gke_kubeflow_cluster.sh
Created June 13, 2019 11:03
Simple script to deploy a GKE cluster for Kubeflow
#!/bin/bash
set -e
# Edit according to your preference
GCP_USER="$(gcloud config list account --format "value(core.account)")"
GCP_PROJECT="$(gcloud config list project --format "value(core.project)")"
GCP_ZONE="us-west1-b"
CLUSTER_NAME="kubeflow"
@yanniszark
yanniszark / rook-article-commands.sh
Last active February 28, 2019 12:54
Rook Article Commands
# Scale Up the Cassandra Cluster
kubectl edit clusters.cassandra.rook.io rook-cassandra -n rook-cassandra
@yanniszark
yanniszark / netrl_test.go
Created February 9, 2019 15:50
netrl_test.go
package netrl_test
import (
"context"
"errors"
"flag"
"io"
"log"
"net"
"sync"
package scylla_code_assignment
import (
"context"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"golang.org/x/time/rate"
"net"
"time"
)