add argocd and argo events labs content
This commit is contained in:
19
argocd/example-app/deployment.yaml
Normal file
19
argocd/example-app/deployment.yaml
Normal 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
|
||||
12
argocd/example-app/service.yaml
Normal file
12
argocd/example-app/service.yaml
Normal 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
48
argoevents/pulsar.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user