25
loading...
This website collects cookies to deliver better user experience
kubectl -k
. Once this is installed, start the k3d
cluster:k3d cluster create -p "8283:30083@server[0]" -p "8284:30084@server[0]"
localhost:8283
and localhost:8284
. Because these ports map to 30083
and 30084
respectively in the cluster, we’ll also have to modify the install of Cicada using Kustomize.mkdir cicada-distributed-overlay
cicada-distributed start-cluster --mode=KUBE > cicada-distributed-overlay/cicada.yaml
cicada-distributed-overlay/patch.yaml
and add this to the contents:apiVersion: v1
kind: Service
metadata:
name: cicada-distributed-datastore-client
spec:
ports:
- port: 8283
protocol: TCP
targetPort: 8283
nodePort: 30083
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: cicada-distributed-container-service
spec:
ports:
- port: 8284
protocol: TCP
targetPort: 8284
nodePort: 30084
type: NodePort
datastore-client
and container-service
services to use a NodePort
bound to 30083
and 30084
in the cluster, so we can access them locally.cicada-distributed-overlay/kustomization.yaml
:apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cicada.yaml
patchesStrategicMerge:
- patch.yaml
-k
flag in kubectl
:kubectl apply -k cicada-distributed-overlay
k3d
.k3d
cluster and start it using the provided Kube YAML.cicadatesting/cicada-distributed-demos
:git clone https://github.com/cicadatesting/cicada-distributed-demos.git
cicada-distributed-demos/rest-api/app :
docker build -t cicadatesting/demo-api-app:local .
docker build -t cicadatesting/demo-api-flyway:local -f flyway.dockerfile .
k3d image import cicadatesting/demo-api-app:local
k3d image import cicadatesting/demo-api-flyway:local
kube-app.yaml
:kubectl apply -f kube-app.yaml
cicada-distributed-demos/rest-api/integration-tests
. Since it is running in k3d
, the image needs to be imported into the cluster. To build, run:docker build -t cicadatesting/cicada-distributed-demo-integration-test:local .
k3d image import cicadatesting/cicada-distributed-demo-integration-test:local
cicada-distributed run --mode=KUBE --image=cicadatesting/cicada-distributed-demo-integration-test:local