Created
February 9, 2018 09:04
-
-
Save tirumaraiselvan/aa4dcedb56f3606f31d2d010bfbc6bcd to your computer and use it in GitHub Desktop.
Datanode stateful-set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
labels: | |
app: datanode | |
hasuraService: custom | |
name: datanode | |
namespace: default | |
spec: | |
serviceName: "datanode" | |
replicas: 2 | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: datanode | |
spec: | |
containers: | |
- image: uhopper/hadoop-datanode:2.7.2 | |
imagePullPolicy: IfNotPresent | |
name: datanode | |
env: | |
- name: CORE_CONF_fs_defaultFS | |
value: hdfs://namenode-0.namenode:8020 | |
volumeMounts: | |
- name: hdfs-data | |
mountPath: /hadoop/dfs/data | |
volumeClaimTemplates: | |
- metadata: | |
name: hdfs-data | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
storageClassName: default | |
resources: | |
requests: | |
storage: 1Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment