zhangyue19921010 commented on a change in pull request #10669:
URL: https://github.com/apache/druid/pull/10669#discussion_r543863333



##########
File path: integration-tests/script/build_run_k8s_cluster.sh
##########
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+set -e
+
+# setup client keystore
+cd integration-tests
+./docker/tls/generate-client-certs-and-keystores.sh
+rm -rf docker/client_tls
+cp -r client_tls docker/client_tls
+cd ..
+
+# Build Docker images for pods
+mvn -B -ff -q dependency:go-offline \
+      install \
+      -Pdist,bundle-contrib-exts \
+      -Pskip-static-checks,skip-tests \
+      -Dmaven.javadoc.skip=true
+
+docker build -t druid/cluster:v1 -f 
distribution/docker/DockerfileBuildTarAdvanced .
+
+# Set Necessary ENV
+export CHANGE_MINIKUBE_NONE_USER=true
+export MINIKUBE_WANTUPDATENOTIFICATION=false
+export MINIKUBE_WANTREPORTERRORPROMPT=false
+export MINIKUBE_HOME=$HOME
+export KUBECONFIG=$HOME/.kube/config
+sudo apt install -y conntrack
+
+# This tmp dir is used for MiddleManager pod and Historical Pod to cache 
segments.
+mkdir tmp
+chmod 777 tmp
+
+# Lacunch K8S cluster
+curl -Lo kubectl 
https://storage.googleapis.com/kubernetes-release/release/v1.18.1/bin/linux/amd64/kubectl
 && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
+curl -Lo minikube 
https://storage.googleapis.com/minikube/releases/v1.8.1/minikube-linux-amd64 && 
chmod +x minikube && sudo mv minikube /usr/local/bin/
+sudo /usr/local/bin/minikube start --profile=minikube --vm-driver=none 
--kubernetes-version=v1.18.1
+sudo /usr/local/bin/minikube update-context
+
+# Prepare For Druid-Operator
+git clone https://github.com/druid-io/druid-operator.git
+cd druid-operator
+git checkout -b druid-operator-0.0.3 druid-operator-0.0.3
+cd ..
+sed -i 's|REPLACE_IMAGE|druidio/druid-operator:0.0.3|g' 
druid-operator/deploy/operator.yaml
+cp integration-tests/tiny-cluster.yaml druid-operator/examples/
+cp integration-tests/tiny-cluster-zk.yaml druid-operator/examples/

Review comment:
       There are some changes in `integration-tests/tiny-cluster.yaml` and 
`integration-tests/tiny-cluster-zk.yaml`, such as:
   1. New NodeType Service.
   2. Configs changing.
   3. Add MiddleManager configs.
   
   So the original files in druid-operator can't be used directly here.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to