add argocd and argo events labs content

This commit is contained in:
Daniel Aberger
2024-02-13 14:08:53 +01:00
parent fb4fc903ed
commit a34ad56115
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-example-app
spec:
replicas: 2 # You can adjust the number of replicas
selector:
matchLabels:
app: argocd-example-app
template:
metadata:
labels:
app: argocd-example-app
spec:
containers:
- name: argocd-example-app
image: liquidreply/argocd-example-app:1
ports:
- containerPort: 3000 # Assuming your app runs on port 3000

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: argocd-example-app-service
spec:
type: NodePort
selector:
app: argocd-example-app
ports:
- port: 3000
targetPort: 3000
nodePort: 31000 # Optional: Kubernetes will choose a port if this is omitted

48
argoevents/pulsar.yaml Normal file
View File

@@ -0,0 +1,48 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pulsar
labels:
app: pulsar
spec:
replicas: 1
template:
metadata:
name: pulsar
labels:
app: pulsar
spec:
containers:
- name: pulsar
image: apachepulsar/pulsar:2.4.1
command:
- bin/pulsar
- standalone
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /pulsar/data
name: datadir
restartPolicy: Always
volumes:
- name: datadir
emptyDir: {}
selector:
matchLabels:
app: pulsar
---
apiVersion: v1
kind: Service
metadata:
name: pulsar
spec:
selector:
app: pulsar
ports:
- port: 8080
targetPort: 8080
name: http
- port: 6650
name: another
targetPort: 6650
type: LoadBalancer