Created
October 9, 2021 04:40
-
-
Save Thearas/e435004804fa0f42364b9cdaae04f6d9 to your computer and use it in GitHub Desktop.
K8s standalone pulsar
This file contains 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/v1 | |
kind: StatefulSet | |
metadata: | |
name: pulsar-standalone | |
labels: | |
app.kubernetes.io/managed-by: test-infra | |
spec: | |
serviceName: pulsar-svc | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: pulsar | |
template: | |
metadata: | |
labels: | |
app: pulsar | |
spec: | |
terminationGracePeriodSeconds: 30 | |
containers: | |
- name: pulsar-standalone | |
image: "apachepulsar/pulsar:2.8.1" | |
imagePullPolicy: IfNotPresent | |
resources: | |
requests: | |
cpu: 500m | |
memory: 2Gi | |
limits: | |
cpu: "4" | |
memory: 10Gi | |
livenessProbe: | |
httpGet: | |
path: /admin/v2/brokers/health | |
port: 8080 | |
initialDelaySeconds: 10 | |
periodSeconds: 30 | |
failureThreshold: 60 | |
readinessProbe: | |
httpGet: | |
path: /admin/v2/brokers/health | |
port: 8080 | |
initialDelaySeconds: 10 | |
periodSeconds: 30 | |
failureThreshold: 60 | |
ports: | |
- containerPort: 6550 | |
name: pulsar | |
- containerPort: 8080 | |
name: http | |
command: ["sh", "-c"] | |
args: | |
- > | |
exec bin/pulsar standalone --no-stream-storage --no-functions-worker --bookkeeper-dir 'data/bookkeeper' --zookeeper-dir 'data/zookeeper'; | |
volumeMounts: | |
- name: "data-pulsar" | |
mountPath: /pulsar/data | |
volumeClaimTemplates: | |
- metadata: | |
name: "data-pulsar" | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
resources: | |
requests: | |
storage: 1Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment