Skip to content

Commit

Permalink
Flip injectIstio param to true (kubeflow#3087)
Browse files Browse the repository at this point in the history
* flip prototypes

* flip pipeline

* try disable istio for tf-serving test

* disable istio in kfctl.sh

* remove quotes
  • Loading branch information
gabrielwen authored and k8s-ci-robot committed Apr 29, 2019
1 parent 5367d99 commit 308b79f
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion kubeflow/argo/prototypes/argo.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// @optionalParam artifactRepositoryAccessKeySecretKey string accesskey artifactRepositoryAccessKeySecretKey
// @optionalParam artifactRepositorySecretKeySecretName string mlpipeline-minio-artifact artifactRepositorySecretKeySecretName
// @optionalParam artifactRepositorySecretKeySecretKey string secretkey artifactRepositorySecretKeySecretKey
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string svc.cluster.local DNS config to cluster domain.

local argo = import "kubeflow/argo/argo.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/common/prototypes/centraldashboard.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @shortDescription centraldashboard
// @param name string Name
// @optionalParam image string gcr.io/kubeflow-images-public/centraldashboard:v0.5.0 Image for the central dashboard
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local centraldashboard = import "kubeflow/common/centraldashboard.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/common/prototypes/echo-server.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @shortDescription A simple echo server.
// @param name string Name for the component
// @optionalParam image string gcr.io/kubeflow-images-staging/echo-server:v20180628-44f08d31 The image to use.
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local echoserver = import "kubeflow/common/echo-server.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/examples/prototypes/tensorboard.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @optionalParam servicePort number 9000 Name of the servicePort
// @optionalParam serviceType string ClusterIP The service type for tensorboard service
// @optionalParam defaultTbImage string tensorflow/tensorflow:1.8.0 default tensorboard image to use
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local tensorboard = import "kubeflow/tensorboard/tensorboard.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/jupyter/prototypes/jupyter-web-app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @optionalParam policy string Always imagePullPolicy for the UI's image
// @optionalParam prefix string jupyter The prefix under which the app is accessed
// @optionalParam rokSecretName string secret-rok-{username} The name of the secret containing user's credentials for Arrikto Rok
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string svc.cluster.local DNS config to cluster domain.

local jupyter_ui = import "kubeflow/jupyter/jupyter-web-app.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/katib/prototypes/all.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// @optionalParam vizierDbImage string mysql:8.0.3 The image for vizier db.
// @optionalParam studyJobControllerImage string gcr.io/kubeflow-images-public/katib/studyjob-controller:v0.1.2-alpha-156-g4ab3dbd The image for studyjob-controller.
// @optionalParam metricsCollectorImage string gcr.io/kubeflow-images-public/katib/metrics-collector:v0.1.2-alpha-156-g4ab3dbd The image for metrics-collector.
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local k = import "k.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/kubebench/prototypes/kubebench-dashboard.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @shortDescription Kubebench dashboard installer
// @param name string Name for the component
// @optionalParam image string gcr.io/kubeflow-images-public/kubebench/kubebench-dashboard:v0.4.0-13-g262c593 Image for kubebench dashboard
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local k = import "k.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/openvino/prototypes/openvino.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// @optionalParam modelName string resnet model name
// @optionalParam pvc string nfs Claimname for the PVC
// @optionalParam pvcMount string /opt/ml Mount path for PVC.
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local openvino = import "kubeflow/openvino/openvino.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/pipeline/pipeline.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
mysqlPd: null,
minioPd: null,
nfsPd: null,
injectIstio: "false",
injectIstio: "true",
clusterDomain: "cluster.local",
},

Expand Down
2 changes: 1 addition & 1 deletion kubeflow/tensorboard/prototypes/tensorboard-aws.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// @optionalParam efsPvcName string null Name of the Persistent Volume Claim used for EFS
// @optionalParam efsVolumeName string null Name of the Volume to mount to the pod
// @optionalParam efsMountPath string null Where to mount the EFS Volume
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local subtype = import "kubeflow/tensorboard/aws.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/tensorboard/prototypes/tensorboard-gcp.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// @optionalParam serviceType string ClusterIP The service type for Jupyterhub.
// @optionalParam defaultTbImage string tensorflow/tensorflow:1.8.0 default tensorboard image to use
// @optionalParam gcpCredentialSecretName string null Name of the k8s secrets containing gcp credentials
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local subtype = import "kubeflow/tensorboard/gcp.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/tf-serving/prototypes/tf-serving-aws.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @param name string Name to give to each of the components
// @optionalParam numGpus string 0 Number of gpus to use
// @optionalParam deployHttpProxy string false Whether to deploy http proxy
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam enablePrometheus string true Whether to enable prometheus endpoint (requires TF 1.11)
// @optionalParam modelBasePath string s3://kubeflow-examples-data/mnist The model path
// @optionalParam modelName string null The model name
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/tf-serving/prototypes/tf-serving-gcp.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// @optionalParam defaultGpuImage string tensorflow/serving:1.11.1-gpu The default model server image (gpu)
// @optionalParam httpProxyImage string gcr.io/kubeflow-images-public/tf-model-server-http-proxy:v20180723 Http proxy image
// @optionalParam gcpCredentialSecretName string null If not empty, insert the secret credential
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam enablePrometheus string true Whether to enable prometheus endpoint (requires TF 1.11)

local k = import "k.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/tf-serving/prototypes/tf-serving-service.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// @optionalParam serviceType string ClusterIP The k8s service type for tf serving.
// @optionalParam modelName string null The model name
// @optionalParam trafficRule string v1:100 The traffic rule, in the format of version:percentage,version:percentage,..
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam enablePrometheus string true Whether to enable prometheus endpoint (requires TF 1.11)

local k = import "k.libsonnet";
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/tf-training/prototypes/tf-job-operator.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// @optionalParam deploymentScope string cluster The scope at which tf-job-operator should be deployed - valid values are cluster, namespace.
// @optionalParam deploymentNamespace string null The namespace to which tf-job-operator should be scoped. If deploymentScope is set to cluster, this is ignored.
// @optionalParam enableGangScheduling string false If set true, enable gang scheduling by kube-batch.
// @optionalParam injectIstio string false Whether to inject istio sidecar; should be true or false.
// @optionalParam injectIstio string true Whether to inject istio sidecar; should be true or false.
// @optionalParam clusterDomain string cluster.local DNS config to cluster domain.

local tfJobOperator = import "kubeflow/tf-training/tf-job-operator.libsonnet";
Expand Down
14 changes: 8 additions & 6 deletions scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,19 @@ createKsApp() {
ks generate openvino openvino
ks generate jupyter jupyter
ks generate notebook-controller notebook-controller
ks generate jupyter-web-app jupyter-web-app
ks generate centraldashboard centraldashboard
ks generate tf-job-operator tf-job-operator
ks generate tensorboard tensorboard
ks generate jupyter-web-app jupyter-web-app --injectIstio false
ks generate centraldashboard centraldashboard --injectIstio false
ks generate tf-job-operator tf-job-operator --injectIstio false
ks generate tensorboard tensorboard --injectIstio false
ks generate metacontroller metacontroller
ks generate profiles profiles
ks generate notebooks notebooks
ks generate argo argo
ks generate argo argo --injectIstio false

ks generate pipeline pipeline
ks param set pipeline injectIstio false

ks generate katib katib
ks generate katib katib --injectIstio false
# Enable collection of anonymous usage metrics
# To disable metrics collection. Remove the spartakus component.
# cd ks_app
Expand Down
2 changes: 2 additions & 0 deletions testing/workflows/components/tfserving.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@
modelName: "mnist",
namespace: stepsNamespace,
modelPath: "gs://kubeflow-examples-data/mnist",
injectIstio: "false",
};
local deployGpuParams = {
name: "mnist-gpu",
modelName: "mnist",
namespace: stepsNamespace,
modelPath: "gs://kubeflow-examples-data/mnist",
numGpus: 1,
injectIstio: "false",
};

local toPair = function(k, v) k + "=" + v;
Expand Down

0 comments on commit 308b79f

Please sign in to comment.