github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/staging/spark/spark-gluster/spark-master-controller.yaml (about) 1 kind: ReplicationController 2 apiVersion: v1 3 metadata: 4 name: spark-master-controller 5 namespace: spark-cluster 6 labels: 7 component: spark-master 8 spec: 9 replicas: 1 10 selector: 11 component: spark-master 12 template: 13 metadata: 14 labels: 15 component: spark-master 16 spec: 17 containers: 18 - name: spark-master 19 image: k8s.gcr.io/spark:1.5.2_v1 20 command: ["/start-master"] 21 ports: 22 - containerPort: 7077 23 volumeMounts: 24 - mountPath: /mnt/glusterfs 25 name: glusterfsvol 26 resources: 27 requests: 28 cpu: 100m 29 volumes: 30 - name: glusterfsvol 31 glusterfs: 32 endpoints: glusterfs-cluster 33 path: MyVolume 34 readOnly: false