cloud-native-toolkit / multi-tenancy-gitops

Provides our opinionated point of view on how GitOps can be used to manage the infrastructure, services and application layers of K8s based systems
https://cloudnativetoolkit.dev/adopting/use-cases/gitops/gitops-ibm-cloud-paks/
Apache License 2.0
110 stars 730 forks source link

Added updated SSP recipe, cleaned up hook generation #294

Closed Knickkennedy closed 1 year ago

Knickkennedy commented 1 year ago

Signed-off-by: Knicholas Kennedy Knicholas.Kennedy@ibm.com

This is a pretty comprehensive cleanup and rework of the gitops configuration for the SSP containerized deployment.

hollisc commented 1 year ago

Please add a md file for the SSP recipe as well in the docs folder.

Knickkennedy commented 1 year ago

Please add a md file for the SSP recipe as well in the docs folder.

Fixed

hollisc commented 1 year ago

@Knickkennedy, in the recipe md file, can we provide the oc cmd for the user to retrieve the SSP URL and list the default credentials from the env file. Otherwise it looks good.

Knickkennedy commented 1 year ago

@hollisc added default credentials and route command!

hollisc commented 1 year ago

This PR depends on merge of https://github.com/cloud-native-toolkit/multi-tenancy-gitops-services/pull/61

vbudi000 commented 1 year ago

Just some comments on the documentation - maybe @Knickkennedy can put those in before the merge:

vbudi000 commented 1 year ago

Your run-setup.sh has an error that the kubeseal output is going to the terminal instead of a YAML file.

Here is the run-setup.sh that I use and working: https://github.com/vbudi-gitops-test/multi-tenancy-gitops-services/blob/master/instances/sterling-secure-proxy-setup/run-setup.sh

vbudi000 commented 1 year ago

Another - the list in SCC volumes should be alphabetical - otherwise it will show as OOS

vbudi000 commented 1 year ago

Several more:

vbudi000 commented 1 year ago

Hook job does not work - my modified version is here (and it works) https://github.com/vbudi-gitops-test/multi-tenancy-gitops-services/blob/master/instances/sterling-secure-proxy-hook/keycert-hook-job.yaml maybe can use this one - the problem that I found is the cm sts is using group 1000, so it cannot access the PVC as is with oc rsync or oc cp; and as the pvc is RWX, you can just mount it

vbudi000 commented 1 year ago

All pods are running, but the last verification steps to connect to CM cant get through; the cm sts logs has this:

Exception in thread "qtp432306461-24" java/lang/NoClassDefFoundError: com.ibm.oti.util.Msg
at java/lang/ThreadGroup.uncaughtException (ThreadGroup.java:867)
at java/lang/ThreadGroup.uncaughtException (ThreadGroup.java:861)
at java/lang/Thread.uncaughtException (Thread.java:1336)
vbudi000 commented 1 year ago

Summary:

davidstacy commented 1 year ago

can this be merged? anyone test recently? @hollisc @vbudi000

davidstacy commented 1 year ago

can this be merged? anyone test recently? @hollisc @vbudi000

hollisc commented 1 year ago

can this be merged? anyone test recently? @hollisc @vbudi000

@Knickkennedy , can you please have a look at Budi's comments above, I believe we were waiting for those changes to get into the PR before merging.

davidstacy commented 1 year ago

@Knickkennedy @hollisc following up - can this be merged?