This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: ldap | |
name: ldap-service | |
namespace: kubeflow | |
spec: | |
type: ClusterIP | |
clusterIP: None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: authn-filter | |
spec: | |
workloadLabels: | |
istio: ingressgateway | |
filters: | |
- filterConfig: | |
httpService: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kubeflow.org/v1alpha1 | |
kind: KfDef | |
spec: | |
applications: | |
- name: | |
kustomizeConfig: | |
name: jupyter-web-app | |
overlays: | |
- istio | |
repoRef: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTFS="/mnt/hostfs" | |
function sleep_forever() { | |
while true; do sleep 100; done | |
} | |
function setup_kubectl() { | |
# Setup kubectl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import sys | |
import os | |
template = """ | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: {d.name}-{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
from subprocess import run | |
deps = [ | |
"k8s.io/api@kubernetes-{version}", | |
"k8s.io/apiextensions@kubernetes-{version}", | |
"k8s.io/apimachinery@kubernetes-{version}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import goyaml "github.com/go-yaml/yaml" | |
func SplitYAML(resources []byte) ([][]byte, error) { | |
dec := goyaml.NewDecoder(bytes.NewReader(resources)) | |
var res [][]byte | |
for { | |
var value interface{} | |
err := dec.Decode(&value) |