Skip to content

Commit

Permalink
Move activemq to own namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Mar 10, 2024
1 parent 5b412a5 commit 0e80373
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion etc/k8s/activemq-artemis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
labels:
app: activemq-artemis
name: activemq-artemis
namespace: stomp-test
namespace: activemq-artemis
spec:
replicas: 1
selector:
Expand Down
7 changes: 7 additions & 0 deletions etc/k8s/activemq-artemis-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: activemq-artemis
spec:
finalizers:
- kubernetes
2 changes: 1 addition & 1 deletion etc/k8s/activemq-artemis-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
labels:
app: activemq-artemis
name: activemq-artemis
namespace: stomp-test
namespace: activemq-artemis
spec:
accessModes:
- ReadWriteOnce
Expand Down
2 changes: 1 addition & 1 deletion etc/k8s/activemq-artemis-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ metadata:
labels:
app: activemq-artemis
name: activemq-artemis
namespace: stomp-test
namespace: activemq-artemis
type: Opaque
2 changes: 1 addition & 1 deletion etc/k8s/activemq-artemis-service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: activemq-artemis
labels:
app: activemq-artemis
namespace: stomp-test
namespace: activemq-artemis
spec:
selector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion etc/k8s/activemq-artemis-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
labels:
app: activemq-artemis
name: activemq-artemis
namespace: stomp-test
namespace: activemq-artemis
spec:
type: ClusterIP
ports:
Expand Down
6 changes: 3 additions & 3 deletions etc/k8s/wildfly-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ spec:
- name: ETCD_SERVER
value: etcd.x1
- name: ACTIVEMQ_SERVER
value: activemq-artemis
value: activemq-artemis.activemq-artemis
- name: ARTEMIS_USER
valueFrom:
secretKeyRef:
key: artemis-user
name: activemq-artemis
name: wildfly
- name: ARTEMIS_PASSWORD
valueFrom:
secretKeyRef:
key: artemis-password
name: activemq-artemis
name: wildfly
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
Expand Down
12 changes: 12 additions & 0 deletions etc/k8s/wildfly-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
data:
# user and password "artemis", do not commit real credentials
artemis-user: YXJ0ZW1pcw==
artemis-password: YXJ0ZW1pcw==
kind: Secret
metadata:
labels:
app: wildfly
name: wildfly
namespace: stomp-test
type: Opaque

0 comments on commit 0e80373

Please sign in to comment.