Skip to content

Commit fa4b452

Browse files
authored
Add k8s manifests for the k8ssandra px cli demo (#1374)
Summary: Add k8s manifests for k8ssandra px cli demo Relevant Issues: #680 Type of change: /kind feature Test Plan: Verify the demo works by deploying it as described below: - [ ] Deploying the demo to minikube is successful: expected data is visible in the `px/cql_data` and `px/http_data` scripts and `px demo delete` is successful <img width="1728" alt="Screenshot 2023-05-26 at 9 00 31 AM" src="https://github.com/pixie-io/pixie/assets/5855593/dc39410f-157d-47bb-8ced-5e2f29f6cbef"> <img width="1728" alt="Screenshot 2023-05-26 at 9 00 40 AM" src="https://github.com/pixie-io/pixie/assets/5855593/fc878c3d-e787-431d-b70f-51150f33b0f7"> Changelog Message: ```release-note Add a k8ssandra demo to the `px` cli ``` Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
1 parent f4f21ec commit fa4b452

File tree

3 files changed

+86985
-1
lines changed

3 files changed

+86985
-1
lines changed

demos/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,39 @@ file describes the demo scenarios.
5151

5252
4. Copy the yaml file to `pixie/demos/kafka`.
5353

54+
## Updating the `px-k8ssandra` demo
55+
56+
1. Clone `https://github.com/pixie-io/spring-petclinic-reactive`
57+
58+
2. Build the k8s manifests with kustomize
59+
60+
```shell
61+
spring-petclinic-reactive-root-dir $ kustomize build . > petclinic.yaml
62+
```
63+
64+
3. Clone `https://github.com/k8ssandra/k8ssandra-operator` and checkout the `v1.6.1` tag.
65+
66+
67+
4. Build the manifests needed to install the CRDs and k8ssandra control plane
68+
69+
```shell
70+
# Your kustomize version must be v4.5.7 or newer for these configs
71+
72+
k8ssandra-operator-root-dir $ cd config/crd
73+
kustomize build . > crd.yaml
74+
75+
k8ssandra-operator-root-dir $ cd config/deployments/control-plane/cluster-scope
76+
kustomize build . > k8ssandra-control-plane.yaml
77+
```
78+
79+
5. Concatenate the yaml files in the order specified below and copy it into `pixie/demos/kafka`.
80+
81+
```shell
82+
cat crd.yaml k8ssandra-control-plane.yaml petclinic.yaml > demos/k8ssandra/k8ssandra.yaml
83+
```
84+
85+
6. Replace all occurrences of the k8ssandra-operator namespace. At the time of this writing, the areas to search and replace include the namespace field for a given resource in addition to the cert-manager annotations (cert-manager.io/inject-ca-from). Note: there may be kustomize variables used for the cert-manager.io/inject-ca-from annotation, so ensure all usages reference the px-k8ssandra namespace.
86+
5487
## Updating the `px-finagle` demo
5588

5689
1. Clone `https://github.com/pixie-io/finagle-helloworld`

0 commit comments

Comments
 (0)