Skip to content

Instantly share code, notes, and snippets.

@fsultan
Created July 12, 2024 19:52
Show Gist options
  • Save fsultan/5fd50656b17f00672d0c86e192e9f5fa to your computer and use it in GitHub Desktop.
Save fsultan/5fd50656b17f00672d0c86e192e9f5fa to your computer and use it in GitHub Desktop.
solace statefulset export
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
meta.helm.sh/release-name: my-release
meta.helm.sh/release-namespace: default
creationTimestamp: "2024-07-12T19:32:43Z"
generation: 1
labels:
app.kubernetes.io/instance: my-release
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: pubsubplus
helm.sh/chart: pubsubplus-3.3.3
name: my-release-pubsubplus
namespace: default
resourceVersion: "991"
uid: 252dff53-5f94-4e49-bba4-ecd1185d3020
spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
podManagementPolicy: Parallel
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/instance: my-release
app.kubernetes.io/name: pubsubplus
serviceName: my-release-pubsubplus-discovery
template:
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/instance: my-release
app.kubernetes.io/name: pubsubplus
spec:
containers:
- command:
- bash
- -ec
- |
source /mnt/disks/solace/init.sh
# not using postinstall hooks because of order dependencies
# launch config check - readiness check script will be launched by readinessProbe
nohup /mnt/disks/solace/startup-broker.sh &
/usr/sbin/boot.sh
env:
- name: STATEFULSET_NAME
value: my-release-pubsubplus
- name: STATEFULSET_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: TZ
value: :/usr/share/zoneinfo/UTC
- name: UMASK
value: "0022"
image: solace/solace-pubsub-standard:latest
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command:
- bash
- -ec
- "while ! pgrep solacedaemon ; do sleep 1; done\nkillall solacedaemon;
\nwhile [ ! -d /usr/sw/var/db.upgrade ]; do sleep 1; done;\n"
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 300
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 5
name: pubsubplus
ports:
- containerPort: 2222
protocol: TCP
- containerPort: 8080
protocol: TCP
- containerPort: 1943
protocol: TCP
- containerPort: 55555
protocol: TCP
- containerPort: 55003
protocol: TCP
- containerPort: 55443
protocol: TCP
- containerPort: 55556
protocol: TCP
- containerPort: 8008
protocol: TCP
- containerPort: 1443
protocol: TCP
- containerPort: 9000
protocol: TCP
- containerPort: 9443
protocol: TCP
- containerPort: 5672
protocol: TCP
- containerPort: 5671
protocol: TCP
- containerPort: 1883
protocol: TCP
- containerPort: 8883
protocol: TCP
- containerPort: 8000
protocol: TCP
- containerPort: 8443
protocol: TCP
readinessProbe:
exec:
command:
- /mnt/disks/solace/readiness_check.sh
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: "2"
memory: 4025Mi
requests:
cpu: "2"
memory: 4025Mi
securityContext:
privileged: false
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/podinfo
name: podinfo
- mountPath: /mnt/disks/solace
name: config-map
- mountPath: /mnt/disks/secrets
name: secrets
readOnly: true
- mountPath: /dev/shm
name: dshm
- mountPath: /usr/sw/jail
name: data
subPath: jail
- mountPath: /usr/sw/var
name: data
subPath: var
- mountPath: /usr/sw/internalSpool
name: data
subPath: internalSpool
- mountPath: /usr/sw/adb
name: data
subPath: adb
- mountPath: /var/lib/solace/diags
name: data
subPath: diags
- mountPath: /usr/sw/internalSpool/softAdb
name: data
subPath: softAdb
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1000002
runAsUser: 1000001
serviceAccount: my-release-pubsubplus-sa
serviceAccountName: my-release-pubsubplus-sa
terminationGracePeriodSeconds: 1200
volumes:
- downwardAPI:
defaultMode: 420
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.labels
path: labels
name: podinfo
- configMap:
defaultMode: 493
name: my-release-pubsubplus
name: config-map
- name: secrets
secret:
defaultMode: 256
secretName: my-release-pubsubplus-secrets
- emptyDir:
medium: Memory
name: dshm
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 30Gi
volumeMode: Filesystem
status:
phase: Pending
status:
availableReplicas: 0
collisionCount: 0
currentReplicas: 1
currentRevision: my-release-pubsubplus-c97988c57
observedGeneration: 1
replicas: 1
updateRevision: my-release-pubsubplus-c97988c57
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment