imperio-wxm commented on issue #4409:
URL: https://github.com/apache/kyuubi/issues/4409#issuecomment-1443230435

   @pan3793 
   - kyuubi-configmap.yaml
   ```yaml
   apiVersion: v1
   kind: ConfigMap
   metadata:
     name: kyuubi-defaults
   data:
     kyuubi-defaults.conf: |
       kyuubi.kubernetes.namespace=spark-operator
       kyuubi.authentication=NONE
       kyuubi.engine.share.level=USER
       kyuubi.engine.connection.url.use.hostname=false
       kyuubi.frontend.connection.url.use.hostname=false
       kyuubi.operation.language=SCALA
       
kyuubi.session.engine.spark.main.resource=local:///opt/spark/jars/xxxxx.jar
       kyuubi.ha.zookeeper.acl.enabled=true
       kyuubi.ha.addresses=xxxx:2181
       kyuubi.frontend.protocols=THRIFT_BINARY,REST
       # spark
       spark.master=k8s://https://xxxx
       spark.submit.deployMode=cluster
       # k8s
       spark.kubernetes.container.image=xxxxx
       spark.kubernetes.container.image.pullPolicy=Always
   ```
   
   - kyuubi-deployment.yaml
   ```yaml
   apiVersion: apps/v1
   kind: Deployment
   metadata:
     name: kyuubi-servers
     labels:
       app: kyuubi-server
       role: kyuubi-server
   spec:
     replicas: 2
     selector:
       matchLabels:
         app: kyuubi-server
         role: kyuubi-server
     template:
       metadata:
         labels:
           app: kyuubi-server
           role: kyuubi-server
       spec:
         containers:
           - name: kyuubi-server
             image: xxxx
             imagePullPolicy: Always
             env:
               - name: KYUUBI_JAVA_OPTS
                 value: -Dkyuubi.metrics.reporters=PROMETHEUS 
-Dkyuubi.metrics.prometheus.port=8585 -Dkyuubi.metrics.prometheus.path=/
             ports:
               - name: frontend-port
                 containerPort: 10009
                 protocol: TCP
             volumeMounts:
               - name: kyuubi-defaults
                 mountPath: /opt/kyuubi/conf
         volumes:
           - name: kyuubi-defaults
             configMap:
               name: kyuubi-defaults
   ```
   
   Everything else is default.
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to