美文网首页spark on k8s
spark-operator使用记录

spark-operator使用记录

作者: morphtin | 来源:发表于2018-12-29 11:06 被阅读0次

    官方github地址

    git clone后按tutorial进行


    关于apiversion: kubectl api-versions 查看

    yaml文件介绍


    关于 yaml文件之Volume - HostPath

    关于yaml文件之通过shell执行命令

    command: ["/bin/sh"]

    args: ["-c", "if [ -f 'test' ]; then echo ok; else echo no; fi"]

    spec:

      containers:

      - image: k8s.gcr.io/test-webserver

        name: test-container

        volumeMounts:

        - mountPath: /test-pd

          name: test-volume

      volumes:

      - name: test-volume

        hostPath:

          # directory location on host

          path: /data

          # this field is optional

          type: Directory


    相关文章

      网友评论

        本文标题:spark-operator使用记录

        本文链接:https://www.haomeiwen.com/subject/itsulqtx.html