diff --git a/argocd/example-app/deployment.yaml b/argocd/example-app/deployment.yaml new file mode 100644 index 0000000..86ed034 --- /dev/null +++ b/argocd/example-app/deployment.yaml @@ -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 diff --git a/argocd/example-app/service.yaml b/argocd/example-app/service.yaml new file mode 100644 index 0000000..a8958ab --- /dev/null +++ b/argocd/example-app/service.yaml @@ -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 diff --git a/argoevents/pulsar.yaml b/argoevents/pulsar.yaml new file mode 100644 index 0000000..86771a0 --- /dev/null +++ b/argoevents/pulsar.yaml @@ -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 +