fluxcd / flux

Successor: https://github.com/fluxcd/flux2
https://fluxcd.io
Apache License 2.0
6.9k stars 1.08k forks source link

[question] Flux on spot/preemptible instances #3583

Closed PatrykGala closed 2 years ago

PatrykGala commented 2 years ago

Describe the bug

Hi, I'm using Flux v2 with GKE autopilot cluster, for test/dev environments I would like to use Flux with spot instances. Is the setup reliable? Are flux images fault tolerant?

Steps to reproduce

spot_instances.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: not_used
  namespace: flux-system
spec:
  template:
    spec:
      nodeSelector:
        cloud.google.com/gke-spot: "true"

kustomization.yaml

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patches:
  - path: spot_instances.yaml
    target:
      kind: Deployment

resources:
  - gotk-components.yaml
  - gotk-sync.yaml

Expected behavior

Flux should works correctly on Spot instances.

Kubernetes version / Distro / Cloud provider

1.21.5-gke.1302

Flux version

Flux Version: v0.24.1

Git provider

No response

Container Registry provider

No response

Additional context

No response

Maintenance Acknowledgement

Code of Conduct

PatrykGala commented 2 years ago

Now, I am realized you are using discussion on github. I move my question.

kingdonb commented 2 years ago

Thanks for that. I'll answer on the discussion thread 👍 (https://github.com/fluxcd/flux2/discussions/2238)