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.
mongdb/hbase-regionserver.yaml

191 lines
5.4 KiB

---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
checksum/config: ce5ee657e4d8a2a9e72c3741bce44c87d12947f5e29019c8bbc78b5d5754b106
meta.helm.sh/release-name: hbase
meta.helm.sh/release-namespace: hbase
labels:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: hbase
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: hbase
app.kubernetes.io/part-of: hbase
app.kubernetes.io/version: 2.4.13
helm.sh/chart: hbase-0.1.7
name: hbase-hbase-regionserver
namespace: hbase
resourceVersion: '36964612'
spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
podManagementPolicy: OrderedReady
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: hbase
app.kubernetes.io/name: hbase
serviceName: hbase-hbase-regionserver
template:
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: hbase
app.kubernetes.io/name: hbase
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: hbase
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: hbase
app.kubernetes.io/part-of: hbase
app.kubernetes.io/version: 2.4.13
helm.sh/chart: hbase-0.1.7
topologyKey: kubernetes.io/hostname
weight: 5
containers:
- command:
- /bin/bash
- /tmp/hbase-config/bootstrap.sh
- '-d'
- regionserver
env:
- name: HADOOP_USER_NAME
value: root
image: 'ghcr.io/fleeksoft/hbase/hbase-base:2.4.13.2'
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 16030
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
name: regionserver
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 16030
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
resources:
limits:
cpu: '1'
memory: 2Gi
requests:
cpu: 10m
memory: 256Mi
startupProbe:
failureThreshold: 60
httpGet:
path: /
port: 16030
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 2
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp/hbase-config
name: hbase-config
- mountPath: /jmx-exporter
name: jmx-exporter
- mountPath: /etc/exporter
name: exporter-config
dnsPolicy: ClusterFirst
initContainers:
- env:
- name: SHARED_VOLUME_PATH
value: /jmx-exporter
image: 'spdigital/prometheus-jmx-exporter-kubernetes:0.3.1'
imagePullPolicy: IfNotPresent
name: inject-exporter-jar
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /jmx-exporter
name: jmx-exporter
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: hbase-hbase
name: hbase-config
- emptyDir: {}
name: jmx-exporter
- configMap:
defaultMode: 420
name: hbase-hbase-exporter
name: exporter-config
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
---
apiVersion: v1
kind: Service
metadata:
annotations:
meta.helm.sh/release-name: hbase
meta.helm.sh/release-namespace: hbase
labels:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: hbase
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: hbase
app.kubernetes.io/part-of: hbase
app.kubernetes.io/version: 2.4.13
helm.sh/chart: hbase-0.1.7
name: hbase-hbase-regionserver
namespace: hbase
resourceVersion: '36780928'
spec:
clusterIP: None
clusterIPs:
- None
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: hbase-regionserver
port: 16020
protocol: TCP
targetPort: 16020
- name: hbase-ui
port: 16030
protocol: TCP
targetPort: 16030
publishNotReadyAddresses: true
selector:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: hbase
app.kubernetes.io/name: hbase
sessionAffinity: None
type: ClusterIP