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
gcloud auth login | |
gcloud config set project [your-project-id] | |
# Set your default zone. | |
gcloud config set compute/zone us-central1-a | |
# Create a cluster | |
CLUSTER_NAME=[YOUR-CLUSTER-NAME] | |
gcloud container clusters create $CLUSTER_NAME \ | |
--zone us-central1-a \ |
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
kubectl apply --filename https://gist.githubusercontent.com/swiftdiaries/04847b5dc194df0e1357441054bd240d/raw/2f84e8b9addb2b605a4d4742cc33aef820e2177e/Istio%2520installation%2520YAML | |
# Create a kubeflow namespace | |
kubectl create ns kubeflow | |
# Set label to enable istio-injection on the kubeflow namespace | |
kubectl label namespace kubeflow istio-injection=enabled | |
# Ensure Istio pods are Running or Completed. | |
kubectl get pods -n istio-system --watch |
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
# Istio is required for pipelines | |
# [Install istio](https://gist.github.com/swiftdiaries/45be0f72c420b3b7ffd7671efa9e5d3c) | |
# Grab the (latest release of the pipelines)[https://github.com/kubeflow/pipelines/releases] | |
export PIPELINE_VERSION=0.1.6 | |
# Download the bootstrapper job. | |
curl https://storage.googleapis.com/ml-pipeline/release/$PIPELINE_VERSION/bootstrapper.yaml --output bootstrapper.yaml | |
# Update additional parameters in bootstrapper.yaml |
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
kubectl apply --filename https://gist.githubusercontent.com/swiftdiaries/04847b5dc194df0e1357441054bd240d/raw/2f84e8b9addb2b605a4d4742cc33aef820e2177e/Istio%2520installation%2520YAML | |
# Create a kubeflow namespace | |
kubectl create ns kubeflow | |
# Set label to enable istio-injection on the kubeflow namespace | |
kubectl label namespace kubeflow istio-injection=enabled | |
ks init pipeline-ks-app --env on-prem --namespace kubeflow --skip-default-registries | |
cd pipeline-ks-app |
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
--- | |
# PATCH #1: Creating the istio-system namespace. | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: istio-system | |
labels: | |
istio-injection: disabled | |
# PATCH #1 ends. | |
--- |
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
# Copyright 2018 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: nfs | |
namespace: kubeflow | |
spec: | |
accessModes: | |
- ReadWriteMany | |
storageClassName: nfs | |
resources: |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: default-workspace | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
storageClassName: nfs | |
resources: | |
requests: |
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
# For clusters with the default Storage Class named 'standard' | |
# This is true for Cisco Container Platform and Google Kubernetes Engine clusters | |
helm init --service-account=tiller | |
helm repo update | |
helm install stable/nfs-server-provisioner --name kf-nfs-storageclass \ | |
--set=persistence.enabled=true,persistence.storageClass=standard,persistence.size=200Gi | |
# For clusters with the default Storage Class named 'default' | |
# This is for Azure clusters | |
helm init --service-account=tiller | |
helm repo update |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: bolts-launcher | |
spec: | |
template: | |
metadata: | |
labels: | |
app: "notebook-launcher" | |
spec: |
OlderNewer