Skip to content

Latest commit

 

History

History
81 lines (68 loc) · 2.59 KB

step4.md

File metadata and controls

81 lines (68 loc) · 2.59 KB

Refer to values inline

  1. Set watching for pods
watch kubectl get pod
  1. Update message parameter
    1. Open oracle-gitops-workshop repository in your GitHub webpage
    2. Go to clusters/default/flux-system/hello-kubernetes.yaml file
    3. Сlick on pencil to edit the file
    4. Under the values section add new message parameter and click on Commit changes
    5. Observe and remember the Latest commit hash value
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!
  1. What changed?

    1. Go back to CloudShell and see pods are updated

    2. 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`