https://github.com/membrane/camel-k-demo
Begleitmaterial zu https://www.youtube.com/watch?v=ZY9s4zdm_Us
https://github.com/membrane/camel-k-demo
Last synced: 7 months ago
JSON representation
Begleitmaterial zu https://www.youtube.com/watch?v=ZY9s4zdm_Us
- Host: GitHub
- URL: https://github.com/membrane/camel-k-demo
- Owner: membrane
- Created: 2020-05-25T13:54:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T13:55:41.000Z (over 5 years ago)
- Last Synced: 2025-02-06T10:29:58.047Z (8 months ago)
- Language: Kotlin
- Size: 4.88 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Begleitmaterial zum Video #
Camel K serverless Integration auf Kubernetes ( Deutsch )
https://www.youtube.com/watch?v=ZY9s4zdm_Us## Installation, Konfiguration und Start ##
```
set HUB_PASSWORD=...
```
```
kamel install --registry hub.predic8.de --registry-auth-username predic8 --registry-auth-password %HUB_PASSWORD% --force --cluster-type Kubernetes --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots
```(2x)
```
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-pg bitnami/postgresql --set persistence.storageClass=local-ssd
``````
kubectl exec -it my-pg-postgresql-0 /bin/bash
I have no name!@my-pg-postgresql-0:/$ psql -U postgres
postgres=# CREATE TABLE items (orderId INT, quantity INT, productId INT, PRIMARY KEY (orderId, productId));
``````
helm install my-po stable/prometheus-operator
``````
kamel run --trait prometheus.enabled=true --trait prometheus.service-monitor-labels=release=my-po git/camel-k/examples/Sample.java
```
## Deinstallation ##```
kubectl delete all,pvc,configmap,rolebindings,clusterrolebindings,secrets,sa,roles,clusterroles,crd -l app=camel-k
helm uninstall my-pg
helm uninstall my-po
```