diff --git a/kustomize/base/kustomization.yaml b/kustomize/base/kustomization.yaml new file mode 100644 index 0000000..a18fe46 --- /dev/null +++ b/kustomize/base/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +commonLabels: + app.kubernetes.io/name: tkhq-frames +resources: + - resources.yaml +images: + - name: ghcr.io/tkhq/frames diff --git a/kustomize/resources.yaml b/kustomize/base/resources.yaml similarity index 100% rename from kustomize/resources.yaml rename to kustomize/base/resources.yaml diff --git a/kustomize/ha/kustomization.yaml b/kustomize/ha/kustomization.yaml new file mode 100644 index 0000000..f16837d --- /dev/null +++ b/kustomize/ha/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +commonLabels: + app.kubernetes.io/name: tkhq-frames +resources: + - ../base + - pdb.yaml +replicas: + - name: frames + count: 2 diff --git a/kustomize/ha/pdb.yaml b/kustomize/ha/pdb.yaml new file mode 100644 index 0000000..8e3a130 --- /dev/null +++ b/kustomize/ha/pdb.yaml @@ -0,0 +1,8 @@ +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: frames +spec: + minAvailable: 1 + selector: + matchLabels: {} diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index a18fe46..3c2f51f 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -1,8 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -commonLabels: - app.kubernetes.io/name: tkhq-frames resources: - - resources.yaml -images: - - name: ghcr.io/tkhq/frames + - ./base