- Set watching for pods
watch kubectl get pod
- Update
message
parameter- Open
oracle-gitops-workshop
repository in your GitHub webpage - Go to
clusters/default/flux-system/hello-kubernetes.yaml
file - Сlick on pencil to edit the file
- Under the
values
section add newmessage
parameter and click onCommit changes
- Observe and remember the
Latest commit
hash value
- Open
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: hello-kubernetes
namespace: flux-system
spec:
interval: 1m
timeout: 1m
chart:
spec:
chart: ./charts/hello-kubernetes
sourceRef:
kind: GitRepository
name: oracle-gitops-workshop
interval: 1m
targetNamespace: default
values:
message: Hello from GitHub!
-
What changed?
-
Go back to CloudShell and see pods are updated
-
Notice that Flux is reconciled the git repository to the latest commit
kubectl get gitrepositories.source.toolkit.fluxcd.io -A
NAMESPACE NAME URL READY STATUS AGE
-
flux-system oracle-gitops-workshop https://github.com/xcrezd/oracle-gitops-workshop True Fetched revision: master/ce3cfabe028563a439c1ccde90be94fb7a9eb8ed 95s
```
3. Motice that `kustomize` updated to the latest git commit
```
kubectl get kustomizations.kustomize.toolkit.fluxcd.io -A
```
```
NAMESPACE NAME READY STATUS AGE
flux-system oracle-gitops-workshop True Applied revision: master/ce3cfabe028563a439c1ccde90be94fb7a9eb8ed 2m51s
```
4. Notice helm events updated
```
kubectl describe helmreleases.helm.toolkit.fluxcd.io hello-kubernetes -n flux-system
```
```
Status:
Conditions:
Last Transition Time: 2021-02-03T08:13:42Z
Message: Release reconciliation succeeded
Reason: ReconciliationSucceeded
Status: True
Type: Ready
Last Transition Time: 2021-02-03T08:13:42Z
Message: Helm upgrade succeeded
Reason: UpgradeSucceeded
Status: True
Type: Released
```
5. Observe the update via Web at `http://instanceIp:30002`