diff --git a/LICENSE b/LICENSE index 15182e9..a2d8676 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 k8s@home +Copyright (c) 2022 k8s@home Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ed255c9..182e99d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Template for deploying k3s backed by Flux +# k3s cluster backed by Flux Highly opinionated template for deploying a single [k3s](https://k3s.io) cluster with [Ansible](https://www.ansible.com) and [Terraform](https://www.terraform.io) backed by [Flux](https://toolkit.fluxcd.io/) and [SOPS](https://toolkit.fluxcd.io/guides/mozilla-sops/). diff --git a/cluster/flux/flux-system/flux-cluster.yaml b/cluster/flux/flux-system/flux-cluster.yaml new file mode 100644 index 0000000..0c48848 --- /dev/null +++ b/cluster/flux/flux-system/flux-cluster.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: GitRepository +metadata: + name: flux-cluster + namespace: flux-system +spec: + interval: 10m + ref: + branch: main + url: https://git.samip.fi/samipsolutions/k3s-cluster.git +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 +kind: Kustomization +metadata: + name: flux-cluster + namespace: flux-system +spec: + interval: 10m + path: ./cluster/flux + prune: true + wait: false + sourceRef: + kind: GitRepository + name: flux-cluster