# FluxCD

version: `v0.31.1`

## Requirement

- Cluster Admin of UK8s
- Admin of repo `pingcap-inc/sre`

## Boostrap

```shell
flux bootstrap github \
  --owner=pingcap-inc \
  --repository=sre \
  --branch=master \
  --path=./uk8s/fluxcd/clusters/production \
  --registry=uhub.service.ucloud.cn/pingcap-community\
  --personal
```

## Usage

### Flux log

```shell
flux logs -f
```

### Get Flux resources

```shell
flux get all
```

### Flux reconcile

```shell
flux reconcile kustomization preview
```

### Flux suspend

```shell
flux suspend kustomization preview
```

### Flux resume

```shell
flux resume kustomization preview
```
