Created
October 10, 2023 08:18
-
-
Save nmasse-itix/8112c360164a7f7eb2be7cd094cf6ace to your computer and use it in GitHub Desktop.
Red Hat AMQ 7 - YAML Manifests
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
kind: StatefulSet | |
apiVersion: apps/v1 | |
metadata: | |
name: mqtt-ss | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
spec: | |
restartPolicy: Always | |
initContainers: | |
- resources: {} | |
terminationMessagePath: /dev/termination-log | |
name: mqtt-container-init | |
command: | |
- /bin/bash | |
env: | |
- name: AMQ_ACCEPTORS | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-netty-secret | |
key: AMQ_ACCEPTORS | |
- name: AMQ_ADDRESSES | |
- name: AMQ_ANYCAST_PREFIX | |
- name: AMQ_CLUSTERED | |
value: 'true' | |
- name: AMQ_CLUSTER_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_CLUSTER_PASSWORD | |
- name: AMQ_CLUSTER_USER | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_CLUSTER_USER | |
- name: AMQ_CONNECTORS | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-netty-secret | |
key: AMQ_CONNECTORS | |
- name: AMQ_ENABLE_JOLOKIA_AGENT | |
value: 'false' | |
- name: AMQ_ENABLE_MANAGEMENT_RBAC | |
value: 'true' | |
- name: AMQ_ENABLE_METRICS_PLUGIN | |
value: 'false' | |
- name: AMQ_EXTRA_ARGS | |
value: '--no-autotune' | |
- name: AMQ_GLOBAL_MAX_SIZE | |
value: 100 mb | |
- name: AMQ_JOURNAL_TYPE | |
value: nio | |
- name: AMQ_MULTICAST_PREFIX | |
- name: AMQ_NAME | |
value: amq-broker | |
- name: AMQ_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_PASSWORD | |
- name: AMQ_QUEUES | |
- name: AMQ_REQUIRE_LOGIN | |
value: 'true' | |
- name: AMQ_ROLE | |
value: admin | |
- name: AMQ_TRANSPORTS | |
- name: AMQ_USER | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_USER | |
- name: CONFIG_INSTANCE_DIR | |
value: /amq/init/config | |
- name: JAVA_OPTS | |
value: >- | |
-Dbroker.properties=/amq/extra/configmaps/mqtt-props-00000001/broker.properties | |
- name: OPENSHIFT_DNS_PING_SERVICE_PORT | |
value: '7800' | |
- name: PING_SVC_NAME | |
value: mqtt-ping-svc | |
- name: POD_NAMESPACE | |
- name: RUN_BROKER | |
value: 'false' | |
- name: TRIGGERED_ROLL_COUNT | |
value: '0' | |
imagePullPolicy: IfNotPresent | |
volumeMounts: | |
- name: amq-cfg-dir | |
mountPath: /amq/init/config | |
- name: tool-dir | |
mountPath: /init_cfg_root | |
- name: configmap-mqtt-props-00000001 | |
readOnly: true | |
mountPath: /amq/extra/configmaps/mqtt-props-00000001 | |
terminationMessagePolicy: File | |
image: >- | |
registry.redhat.io/amq7/amq-broker-init-rhel8@sha256:9a02decbc460ddfc501d8a4a9b41cd084776090951906b027838c0829e1fc15a | |
args: | |
- '-c' | |
- /opt/amq/bin/launch.sh && /opt/amq-broker/script/default.sh | |
schedulerName: default-scheduler | |
affinity: {} | |
terminationGracePeriodSeconds: 60 | |
securityContext: {} | |
containers: | |
- resources: {} | |
readinessProbe: | |
exec: | |
command: | |
- /bin/bash | |
- '-c' | |
- /opt/amq/bin/readinessProbe.sh | |
initialDelaySeconds: 30 | |
timeoutSeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
failureThreshold: 3 | |
terminationMessagePath: /dev/termination-log | |
name: mqtt-container | |
command: | |
- /bin/sh | |
- '-c' | |
- >- | |
export STATEFUL_SET_ORDINAL=${HOSTNAME##*-};exec | |
/opt/amq/bin/launch.sh | |
- start | |
livenessProbe: | |
tcpSocket: | |
port: 8161 | |
initialDelaySeconds: 30 | |
timeoutSeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
failureThreshold: 3 | |
env: | |
- name: AMQ_ACCEPTORS | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-netty-secret | |
key: AMQ_ACCEPTORS | |
- name: AMQ_ADDRESSES | |
- name: AMQ_ANYCAST_PREFIX | |
- name: AMQ_CLUSTERED | |
value: 'true' | |
- name: AMQ_CLUSTER_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_CLUSTER_PASSWORD | |
- name: AMQ_CLUSTER_USER | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_CLUSTER_USER | |
- name: AMQ_CONNECTORS | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-netty-secret | |
key: AMQ_CONNECTORS | |
- name: AMQ_ENABLE_JOLOKIA_AGENT | |
value: 'false' | |
- name: AMQ_ENABLE_MANAGEMENT_RBAC | |
value: 'true' | |
- name: AMQ_ENABLE_METRICS_PLUGIN | |
value: 'false' | |
- name: AMQ_EXTRA_ARGS | |
value: '--no-autotune' | |
- name: AMQ_GLOBAL_MAX_SIZE | |
value: 100 mb | |
- name: AMQ_JOURNAL_TYPE | |
value: nio | |
- name: AMQ_MULTICAST_PREFIX | |
- name: AMQ_NAME | |
value: amq-broker | |
- name: AMQ_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_PASSWORD | |
- name: AMQ_QUEUES | |
- name: AMQ_REQUIRE_LOGIN | |
value: 'true' | |
- name: AMQ_ROLE | |
value: admin | |
- name: AMQ_TRANSPORTS | |
- name: AMQ_USER | |
valueFrom: | |
secretKeyRef: | |
name: mqtt-credentials-secret | |
key: AMQ_USER | |
- name: CONFIG_BROKER | |
value: 'false' | |
- name: CONFIG_INSTANCE_DIR | |
value: /amq/init/config | |
- name: OPENSHIFT_DNS_PING_SERVICE_PORT | |
value: '7800' | |
- name: PING_SVC_NAME | |
value: mqtt-ping-svc | |
- name: POD_NAMESPACE | |
- name: TRIGGERED_ROLL_COUNT | |
value: de788e5f | |
imagePullPolicy: IfNotPresent | |
volumeMounts: | |
- name: configmap-mqtt-props-00000001 | |
readOnly: true | |
mountPath: /amq/extra/configmaps/mqtt-props-00000001 | |
- name: amq-cfg-dir | |
mountPath: /amq/init/config | |
terminationMessagePolicy: File | |
image: >- | |
registry.redhat.io/amq7/amq-broker-rhel8@sha256:e6f71001dccfbbe1cd7cf4fded69e181c10f46cc5c8bd3a8d3045a3f3ac41e2f | |
volumes: | |
- name: configmap-mqtt-props-00000001 | |
configMap: | |
name: mqtt-props-00000001 | |
defaultMode: 420 | |
- name: amq-cfg-dir | |
emptyDir: {} | |
- name: tool-dir | |
emptyDir: {} | |
dnsPolicy: ClusterFirst | |
serviceName: mqtt-hdls-svc | |
podManagementPolicy: OrderedReady | |
updateStrategy: | |
type: RollingUpdate | |
rollingUpdate: | |
partition: 0 | |
revisionHistoryLimit: 10 | |
--- | |
kind: Secret | |
apiVersion: v1 | |
metadata: | |
name: mqtt-credentials-secret | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
data: | |
AMQ_CLUSTER_PASSWORD: dXgxaWFVQnU= | |
AMQ_CLUSTER_USER: cTFEdFdHMks= | |
AMQ_PASSWORD: cHVibGlj | |
AMQ_USER: YWRtaW4= | |
type: Opaque | |
--- | |
kind: Secret | |
apiVersion: v1 | |
metadata: | |
name: mqtt-netty-secret | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
data: | |
AMQ_ACCEPTORS: >- | |
PGFjY2VwdG9yIG5hbWU9Im1xdHQiPnRjcDpcL1wvQUNDRVBUT1JfSVA6MTg4Mz9wcm90b2NvbHM9TVFUVDtjb25uZWN0aW9uc0FsbG93ZWQ9NTt0Y3BTZW5kQnVmZmVyU2l6ZT0xMDQ4NTc2O3RjcFJlY2VpdmVCdWZmZXJTaXplPTEwNDg1NzY7dXNlRXBvbGw9dHJ1ZTthbXFwQ3JlZGl0cz0xMDAwO2FtcXBNaW5DcmVkaXRzPTMwMDxcL2FjY2VwdG9yPjxhY2NlcHRvciBuYW1lPSJzY2FsZURvd24iPnRjcDpcL1wvQUNDRVBUT1JfSVA6NjE2MTY/cHJvdG9jb2xzPUNPUkU7dGNwU2VuZEJ1ZmZlclNpemU9MTA0ODU3Njt0Y3BSZWNlaXZlQnVmZmVyU2l6ZT0xMDQ4NTc2O3VzZUVwb2xsPXRydWU7YW1xcENyZWRpdHM9MTAwMDthbXFwTWluQ3JlZGl0cz0zMDA8XC9hY2NlcHRvcj4= | |
AMQ_CONNECTORS: '' | |
type: Opaque | |
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: mqtt-props-00000001 | |
immutable: true | |
data: | |
broker.properties: | | |
# generated by crd | |
# | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: mqtt-hdls-svc | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
spec: | |
clusterIP: None | |
publishNotReadyAddresses: true | |
ipFamilies: | |
- IPv4 | |
ports: | |
- name: console-jolokia | |
protocol: TCP | |
port: 8161 | |
targetPort: 8161 | |
- name: all | |
protocol: TCP | |
port: 61616 | |
targetPort: 61616 | |
internalTrafficPolicy: Cluster | |
clusterIPs: | |
- None | |
type: ClusterIP | |
ipFamilyPolicy: SingleStack | |
sessionAffinity: None | |
selector: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: mqtt-mqtt-0-svc | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
spec: | |
publishNotReadyAddresses: true | |
ipFamilies: | |
- IPv4 | |
ports: | |
- name: mqtt-0 | |
protocol: TCP | |
port: 1883 | |
targetPort: 1883 | |
internalTrafficPolicy: Cluster | |
type: ClusterIP | |
ipFamilyPolicy: SingleStack | |
sessionAffinity: None | |
selector: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
statefulset.kubernetes.io/pod-name: mqtt-ss-0 | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: mqtt-ping-svc | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
spec: | |
clusterIP: None | |
publishNotReadyAddresses: true | |
ipFamilies: | |
- IPv4 | |
ports: | |
- protocol: TCP | |
port: 8888 | |
targetPort: 8888 | |
internalTrafficPolicy: Cluster | |
clusterIPs: | |
- None | |
type: ClusterIP | |
ipFamilyPolicy: SingleStack | |
sessionAffinity: None | |
selector: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: mqtt-wconsj-0-svc | |
labels: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
spec: | |
publishNotReadyAddresses: true | |
ipFamilies: | |
- IPv4 | |
ports: | |
- name: wconsj-0 | |
protocol: TCP | |
port: 8161 | |
targetPort: 8161 | |
internalTrafficPolicy: Cluster | |
type: ClusterIP | |
ipFamilyPolicy: SingleStack | |
sessionAffinity: None | |
selector: | |
ActiveMQArtemis: mqtt | |
application: mqtt-app | |
statefulset.kubernetes.io/pod-name: mqtt-ss-0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment