From 5c1c4e931c6a72822fb0184fbcf751825a26da03 Mon Sep 17 00:00:00 2001 From: diandian Date: Mon, 27 Nov 2023 23:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'yarn-rm.yaml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yarn-rm.yaml | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 yarn-rm.yaml diff --git a/yarn-rm.yaml b/yarn-rm.yaml new file mode 100644 index 0000000..4fd0661 --- /dev/null +++ b/yarn-rm.yaml @@ -0,0 +1,144 @@ +--- +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: yarn-rm + 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-yarn-rm + namespace: hbase + resourceVersion: '36829200' +spec: + persistentVolumeClaimRetentionPolicy: + whenDeleted: Retain + whenScaled: Retain + podManagementPolicy: OrderedReady + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/component: yarn-rm + app.kubernetes.io/instance: hbase + app.kubernetes.io/name: hadoop + serviceName: hbase-hadoop-yarn-rm + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/component: yarn-rm + app.kubernetes.io/instance: hbase + app.kubernetes.io/name: hadoop + spec: + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/component: yarn-rm + 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: /ws/v1/cluster/info + port: 8088 + scheme: HTTP + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 2 + name: yarn-rm + ports: + - containerPort: 8088 + name: web + protocol: TCP + readinessProbe: + failureThreshold: 3 + httpGet: + path: /ws/v1/cluster/info + port: 8088 + scheme: HTTP + initialDelaySeconds: 5 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 2 + resources: + limits: + cpu: '2' + memory: 2Gi + requests: + cpu: 10m + memory: 256Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + volumeMounts: + - mountPath: /tmp/hadoop-config + name: hadoop-config + 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 + +--- +apiVersion: v1 +kind: Service +metadata: + annotations: + meta.helm.sh/release-name: hbase + meta.helm.sh/release-namespace: hbase + labels: + app.kubernetes.io/component: yarn-rm + 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-yarn-rm + namespace: hbase + resourceVersion: '36780935' +spec: + clusterIP: None + clusterIPs: + - None + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - name: web + port: 8088 + protocol: TCP + targetPort: 8088 + selector: + app.kubernetes.io/component: yarn-rm + app.kubernetes.io/instance: hbase + app.kubernetes.io/name: hadoop + sessionAffinity: None + type: ClusterIP +