Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | 6.1 and later |
How can I deploy my RMS server in Kubernetes, and expose WebStudio to clients as a tcp service?
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
$ cat kind-ingress.yaml | kind create cluster --config=-
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
$ kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s
(wait for the 'condition met' message)
./build_image.sh -i rms -a ~/artifacts/ -s ~/installers/ -t rms --disable-tests
$ kind load docker-image rms:latest
apiVersion: apps/v1
kind: Deployment
metadata:
name: rms-app-deployment
labels:
app: rms
spec:
replicas: 1
selector:
matchLabels:
app: rms
template:
metadata:
labels:
app: rms
spec:
containers:
- name: rms-app
image: rms:latest
imagePullPolicy: Never
ports:
- containerPort: 8090
---
kind: Service
apiVersion: v1
metadata:
name: rms-service
spec:
selector:
app: rms
ports:
- port: 8190
targetPort: 8090
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rms-ingress
spec:
rules:
- http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: rms-service
port:
number: 8190
---
$ kubectl apply -f rms.yaml