Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #17

Merged
merged 6 commits into from
Feb 26, 2023
Merged

Develop #17

merged 6 commits into from
Feb 26, 2023

Conversation

olga-mir
Copy link
Owner

refactor tmp-mgmt cluster folder so that it matches the folder format of permanent cluster with its workload clusters.

result:

clusters
├── cluster-mgmt
│   ├── cluster-01
│   │   ├── capi-cluster.yaml
│   │   ├── kustomization.yaml
│   │   ├── namespace.yaml
│   │   └── platform.yaml
│   ├── flux-system
│   │   ├── gotk-sync.yaml
│   │   └── kustomization.yaml
│   ├── kustomization.yaml
│   └── platform.yaml
└── tmp-mgmt
    ├── cluster-mgmt
    │   ├── capi-cluster.yaml
    │   ├── kustomization.yaml
    │   ├── namespace.yaml
    │   ├── patch.yaml
    │   └── platform.yaml
    ├── flux-system
    │   ├── gotk-sync.yaml
    │   └── kustomization.yaml
    ├── kustomization.yaml
    └── platform.yaml

6 directories, 17 files

why do we need to patch namespace in for mgmt cluster but not for the workload ones: clusters/tmp-mgmt/cluster-mgmt/patch.yaml ?

@olga-mir
Copy link
Owner Author

"manual CI"

===== cluster-mgmt-admin@cluster-mgmt =====

+ kubectl --kubeconfig <path> --context cluster-mgmt-admin@cluster-mgmt get clusters -A
NAMESPACE      NAME           PHASE         AGE   VERSION
cluster-01     cluster-01     Provisioned   40m
cluster-mgmt   cluster-mgmt   Provisioned   40m
+ kubectl --kubeconfig <path> --context cluster-mgmt-admin@cluster-mgmt get po -A
+ grep -E 'flux-system|cilium'
cilium                              cilium-operator-76d967d799-md2ww                                          1/1     Running   0          50m
cilium                              cilium-operator-76d967d799-mqldr                                          1/1     Running   0          50m
cilium                              cilium-pxxbv                                                              1/1     Running   0          49m
cilium                              cilium-qxblw                                                              1/1     Running   0          50m
cilium                              hubble-relay-69b687f7c9-4tj2r                                             1/1     Running   0          50m
cilium                              hubble-ui-5dc4d884b6-22g6v                                                2/2     Running   0          50m
flux-system                         helm-controller-b95c4d69b-6j4kq                                           1/1     Running   0          49m
flux-system                         kustomize-controller-5c6c9f7dcc-f2mw8                                     1/1     Running   0          49m
flux-system                         notification-controller-5cd6f76fbb-krp5r                                  1/1     Running   0          49m
flux-system                         source-controller-84f6bcbfb8-hmf5z                                        1/1     Running   0          49m
+ flux get all -A
NAMESPACE       NAME                            REVISION        SUSPENDED       READY   MESSAGE
flux-system     gitrepository/flux-system       develop/9e63279 False           True    stored artifact for revision 'develop/9e63279189da73e4c356817ea247326df8ef27ed'

NAMESPACE       NAME                            REVISION        SUSPENDED       READY   MESSAGE
cluster-01      kustomization/flux-remote       develop/9e63279 False           True    Applied revision: develop/9e63279
flux-system     kustomization/caaph             develop/9e63279 False           True    Applied revision: develop/9e63279
flux-system     kustomization/caaph-cni         develop/9e63279 False           True    Applied revision: develop/9e63279
flux-system     kustomization/flux-system       develop/9e63279 False           True    Applied revision: develop/9e63279

+ set +x
Switched to context "cluster-01-admin@cluster-01".

===== cluster-01-admin@cluster-01 =====

+ kubectl --kubeconfig <path> --context cluster-01-admin@cluster-01 get clusters -A
error: the server doesn't have a resource type "clusters"
+ kubectl --kubeconfig <path> --context cluster-01-admin@cluster-01 get po -A
+ grep -E 'flux-system|cilium'
cilium        cilium-hnj94                                                              1/1     Running   0          36m
cilium        cilium-operator-75bfd84cfd-gz9xh                                          1/1     Running   0          36m
cilium        cilium-operator-75bfd84cfd-zw9dq                                          1/1     Running   0          36m
cilium        cilium-rf2mt                                                              1/1     Running   0          35m
cilium        hubble-relay-69b687f7c9-5qf4s                                             1/1     Running   0          36m
cilium        hubble-ui-5dc4d884b6-kj4rq                                                2/2     Running   0          36m
flux-system   helm-controller-b95c4d69b-qh247                                           1/1     Running   0          36m
flux-system   kustomize-controller-5c6c9f7dcc-568pd                                     1/1     Running   0          36m
flux-system   notification-controller-5cd6f76fbb-67lmx                                  1/1     Running   0          36m
flux-system   source-controller-84f6bcbfb8-8fx2r                                        1/1     Running   0          36m
+ flux get all -A
+ set +x

@olga-mir olga-mir merged commit a6a4c2e into main Feb 26, 2023
@olga-mir olga-mir deleted the develop branch February 26, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant