kyuubi/docker/example.yaml
Kent Yao 5e16ddb1b5
Run kyuubi on kubernetes - make basic dockerfile and example (#795)
* Run kyuubi on kubernetes - make basic dockerfile and example

* Run kyuubi on kubernetes - make basic dockerfile and example

* Run kyuubi on kubernetes - make basic dockerfile and example

* Run kyuubi on kubernetes - make basic dockerfile and example

* Run kyuubi on kubernetes - make basic dockerfile and example

* Revert "Set protected_branches explicitly in a nonstrict way (#793)"

This reverts commit b16533a972.

* Revert "Revert "Set protected_branches explicitly in a nonstrict way (#793)""

This reverts commit 57f5f6cf9c010ed177bdf0cd446902feb68c14dd.

* adress comments
2021-07-14 20:00:37 +08:00

47 lines
1.5 KiB
YAML

#
# 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.
#
# Usage:
# Start:
# kubectl apply -f https://raw.githubusercontent.com/apache/incubator-kyuubi/master/docker/example.yaml
# Connect:
# kubectl port-forward kyuubi-example --address localhost 10009:10009
# Or
# kubectl exec -it kyuubi-example -- /bin/bash
#
# ${SPARK_HOME}/bin/beeline -u 'jdbc:hive2://localhost:10009'
# Logging
# kubectl logs -f kyuubi-example
apiVersion: v1
kind: Pod
metadata:
name: kyuubi-example
spec:
containers:
- name: kyuubi-server
# TODO: replace this with the official repo
image: yaooqinn/kyuubi:1.3.0
imagePullPolicy: IfNotPresent
env:
- name: KYUUBI_JAVA_OPTS
value: -Dkyuubi.frontend.bind.host=0.0.0.0
ports:
- name: frontend-port
containerPort: 10009
protocol: TCP