You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
178 lines
4.7 KiB
178 lines
4.7 KiB
12 months ago
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
annotations:
|
||
|
checksum/config: c9eecde57524792ee867bd1dcd78b7d2bb7cf24c6f040d2a70bcabf6076e75a3
|
||
|
meta.helm.sh/release-name: hbase
|
||
|
meta.helm.sh/release-namespace: hbase
|
||
|
labels:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/managed-by: Helm
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
helm.sh/chart: hadoop-1.2.1
|
||
|
name: hbase-hadoop-hdfs-dn
|
||
|
namespace: hbase
|
||
|
resourceVersion: '36975062'
|
||
|
spec:
|
||
|
persistentVolumeClaimRetentionPolicy:
|
||
|
whenDeleted: Retain
|
||
|
whenScaled: Retain
|
||
|
podManagementPolicy: OrderedReady
|
||
|
replicas: 3
|
||
|
revisionHistoryLimit: 10
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
serviceName: hbase-hadoop-hdfs-dn
|
||
|
template:
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
spec:
|
||
|
affinity:
|
||
|
podAntiAffinity:
|
||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||
|
- podAffinityTerm:
|
||
|
labelSelector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
topologyKey: kubernetes.io/hostname
|
||
|
weight: 5
|
||
|
containers:
|
||
|
- command:
|
||
|
- /bin/bash
|
||
|
- /tmp/hadoop-config/bootstrap.sh
|
||
|
- '-d'
|
||
|
image: 'ghcr.io/fleeksoft/hbase/hdfs:3.3.3.2'
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
livenessProbe:
|
||
|
failureThreshold: 3
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 9864
|
||
|
scheme: HTTP
|
||
|
initialDelaySeconds: 30
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
timeoutSeconds: 2
|
||
|
name: hdfs-dn
|
||
|
readinessProbe:
|
||
|
failureThreshold: 3
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 9864
|
||
|
scheme: HTTP
|
||
|
initialDelaySeconds: 30
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
timeoutSeconds: 2
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: '1'
|
||
|
memory: 2Gi
|
||
|
requests:
|
||
|
cpu: 10m
|
||
|
memory: 256Mi
|
||
|
startupProbe:
|
||
|
failureThreshold: 30
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 9864
|
||
|
scheme: HTTP
|
||
|
initialDelaySeconds: 20
|
||
|
periodSeconds: 5
|
||
|
successThreshold: 1
|
||
|
timeoutSeconds: 2
|
||
|
terminationMessagePath: /dev/termination-log
|
||
|
terminationMessagePolicy: File
|
||
|
volumeMounts:
|
||
|
- mountPath: /tmp/hadoop-config
|
||
|
name: hadoop-config
|
||
|
- mountPath: /root/hdfs/datanode
|
||
|
name: dfs
|
||
|
dnsPolicy: ClusterFirst
|
||
|
restartPolicy: Always
|
||
|
schedulerName: default-scheduler
|
||
|
securityContext: {}
|
||
|
terminationGracePeriodSeconds: 0
|
||
|
volumes:
|
||
|
- configMap:
|
||
|
defaultMode: 420
|
||
|
name: hbase-hadoop
|
||
|
name: hadoop-config
|
||
|
updateStrategy:
|
||
|
rollingUpdate:
|
||
|
partition: 0
|
||
|
type: RollingUpdate
|
||
|
volumeClaimTemplates:
|
||
|
- apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
helm.sh/chart: hadoop-1.2.1
|
||
|
name: dfs
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 50Gi
|
||
|
storageClassName: do-block-storage
|
||
|
volumeMode: Filesystem
|
||
|
status:
|
||
|
phase: Pending
|
||
|
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
annotations:
|
||
|
meta.helm.sh/release-name: hbase
|
||
|
meta.helm.sh/release-namespace: hbase
|
||
|
labels:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/managed-by: Helm
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
helm.sh/chart: hadoop-1.2.1
|
||
|
name: hbase-hadoop-hdfs-dn
|
||
|
namespace: hbase
|
||
|
resourceVersion: '36780931'
|
||
|
spec:
|
||
|
clusterIP: None
|
||
|
clusterIPs:
|
||
|
- None
|
||
|
internalTrafficPolicy: Cluster
|
||
|
ipFamilies:
|
||
|
- IPv4
|
||
|
ipFamilyPolicy: SingleStack
|
||
|
ports:
|
||
|
- name: dfs
|
||
|
port: 9000
|
||
|
protocol: TCP
|
||
|
targetPort: 9000
|
||
|
- name: webhdfs
|
||
|
port: 9864
|
||
|
protocol: TCP
|
||
|
targetPort: 9864
|
||
|
selector:
|
||
|
app.kubernetes.io/component: hdfs-dn
|
||
|
app.kubernetes.io/instance: hbase
|
||
|
app.kubernetes.io/name: hadoop
|
||
|
sessionAffinity: None
|
||
|
type: ClusterIP
|
||
|
|