diff --git a/bootstrap/deployments/gitops-testing-dev.yaml b/bootstrap/deployments/gitops-testing-dev.yaml new file mode 100644 index 0000000..d70b2eb --- /dev/null +++ b/bootstrap/deployments/gitops-testing-dev.yaml @@ -0,0 +1,25 @@ +apiVersion: deployments.plural.sh/v1alpha1 +kind: ServiceDeployment +metadata: + name: gitops-testing-dev + namespace: gitops-example +spec: + namespace: gitops-testing + name: gitops-testing-dev + flowRef: + name: gitops-testing + namespace: gitops-example + repositoryRef: + kind: GitRepository + name: gitops-example + namespace: infra + git: + ref: main + folder: deployments/helm/gitops-testing + helm: + url: oci://ghcr.io/pluralsh/example-charts + chart: stateless + valuesFiles: + - base.yaml + - dev.yaml + cluster: demo-dev diff --git a/bootstrap/flows/gitops-testing.yaml b/bootstrap/flows/gitops-testing.yaml new file mode 100644 index 0000000..2cdd45a --- /dev/null +++ b/bootstrap/flows/gitops-testing.yaml @@ -0,0 +1,8 @@ +apiVersion: deployments.plural.sh/v1alpha1 +kind: Flow +metadata: + name: gitops-testing + namespace: gitops-example +spec: + name: gitops-testing + description: Basic stateless microservice for dev. diff --git a/deployments/helm/gitops-testing/base.yaml b/deployments/helm/gitops-testing/base.yaml new file mode 100644 index 0000000..8071fa1 --- /dev/null +++ b/deployments/helm/gitops-testing/base.yaml @@ -0,0 +1,19 @@ +image: + repository: "ghcr.io/pluralsh/plrl-cd-test" + pullPolicy: IfNotPresent + +service: + type: ClusterIP + port: 80 + +serviceAccount: + create: true + automount: true + +resources: + requests: + cpu: 50m + memory: 64Mi + limits: + cpu: 250m + memory: 256Mi diff --git a/deployments/helm/gitops-testing/dev.yaml b/deployments/helm/gitops-testing/dev.yaml new file mode 100644 index 0000000..c2d8af0 --- /dev/null +++ b/deployments/helm/gitops-testing/dev.yaml @@ -0,0 +1,7 @@ +replicaCount: 1 + +image: + tag: "latest" + +podLabels: + plural.sh/environment: "dev"