From 8b9625cae3d7de50c3cc5b4b944e964efd9d9866 Mon Sep 17 00:00:00 2001 From: Bogusz Przybyslawski Date: Fri, 23 Jun 2023 15:52:31 +0200 Subject: [PATCH] Add templates for flux example --- .../flux/template/deployment.yaml | 20 +++++++++++++++++++ .../flux/template/namespace.yaml | 6 ++++++ .../flux/template/service.yaml | 13 ++++++++++++ 3 files changed, 39 insertions(+) create mode 100755 examples/third_party_integration/flux/template/deployment.yaml create mode 100755 examples/third_party_integration/flux/template/namespace.yaml create mode 100755 examples/third_party_integration/flux/template/service.yaml diff --git a/examples/third_party_integration/flux/template/deployment.yaml b/examples/third_party_integration/flux/template/deployment.yaml new file mode 100755 index 00000000..c9fa59c4 --- /dev/null +++ b/examples/third_party_integration/flux/template/deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-app + namespace: hello-world +spec: + replicas: 1 + selector: + matchLabels: + app: hello-app + template: + metadata: + labels: + app: hello-app + spec: + containers: + - name: hello-app + image: matrus2hub/go-hello-world@sha256:2c4bd6771dbb88db8d8294245d2937f797ff30708d0647aec564e8cd7851c2b5 + ports: + - containerPort: 8888 diff --git a/examples/third_party_integration/flux/template/namespace.yaml b/examples/third_party_integration/flux/template/namespace.yaml new file mode 100755 index 00000000..dd2fdd5d --- /dev/null +++ b/examples/third_party_integration/flux/template/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: hello-world + + diff --git a/examples/third_party_integration/flux/template/service.yaml b/examples/third_party_integration/flux/template/service.yaml new file mode 100755 index 00000000..47759e2c --- /dev/null +++ b/examples/third_party_integration/flux/template/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: hello + namespace: hello-world +spec: + selector: + app: hello-app + ports: + - protocol: TCP + port: 80 + targetPort: 8888 +