Bundle Resource

Bundles are automatically created by Fleet when a GitRepo is created.

The content of the resource corresponds to the BundleSpec. For more information on how to use the Bundle resource Create a Bundle Resource.

  1. kind: Bundle
  2. apiVersion: fleet.cattle.io/v1alpha1
  3. metadata:
  4. # Any name can be used here
  5. name: my-bundle
  6. # For single cluster use fleet-local, otherwise use the namespace of
  7. # your choosing
  8. namespace: fleet-local
  9. spec:
  10. # Namespace used for resources that do not specify a namespace.
  11. # This field is not used to enforce or lock down the deployment to a specific namespace.
  12. # defaultNamespace: test
  13. # If present will assign all resource to this
  14. # namespace and if any cluster scoped resource exists the deployment will fail.
  15. # targetNamespace: app
  16. # Kustomize options for the deployment, like the dir containing the kustomization.yaml file.
  17. # kustomize: ...
  18. # Helm options for the deployment, like the chart name, repo and values.
  19. # helm: ...
  20. # ServiceAccount which will be used to perform this deployment.
  21. # serviceAccount: sa
  22. # ForceSyncGeneration is used to force a redeployment.
  23. # forceSyncGeneration: 0
  24. # YAML options, if using raw YAML these are names that map to overlays/{name} that will be used to replace or patch a resource.
  25. # yaml: ...
  26. # Diff can be used to ignore the modified state of objects which are amended at runtime.
  27. # A specific commit or tag can also be watched.
  28. #
  29. # diff: ...
  30. # KeepResources can be used to keep the deployed resources when removing the bundle.
  31. # keepResources: false
  32. # If set to true, will stop any BundleDeployments from being updated. It will be marked as out of sync.
  33. # paused: false
  34. # Controls the rollout of bundles, by defining partitions, canaries and percentages for cluster availability.
  35. # rolloutStrategy: ...
  36. # Contain the actual resources from the git repo which will be deployed.
  37. resources:
  38. - content: |
  39. apiVersion: apps/v1
  40. kind: Deployment
  41. metadata:
  42. name: nginx-deployment
  43. labels:
  44. app: nginx
  45. spec:
  46. replicas: 3
  47. selector:
  48. matchLabels:
  49. app: nginx
  50. template:
  51. metadata:
  52. labels:
  53. app: nginx
  54. spec:
  55. containers:
  56. - name: nginx
  57. image: nginx:1.14.2
  58. ports:
  59. - containerPort: 80
  60. name: nginx.yaml
  61. # Target clusters to deploy to if running Fleet in a multi-cluster
  62. # style. Refer to the "Mapping to Downstream Clusters" docs for
  63. # more information.
  64. #
  65. # targets: ...
  66. # This field is used by Fleet internally, and it should not be modified manually.
  67. # Fleet will copy all targets into targetRestrictions when a Bundle is created for a GitRepo.
  68. # targetRestrictions: ...
  69. # Refers to the bundles which must be ready before this bundle can be deployed.
  70. # dependsOn: ...