Review generated Kubernetes manifests
Review the structure and content of workflow manifests generated under the 01_basic/manifests directory.
01_basic/manifests
├── 00-secret_basic-secrets.yaml
├── 01-configmap_basic-props.yaml
├── 02-configmap_01-basic-resources-schemas.yaml
└── 03-sonataflow_basic.yaml
-
00-secret_basic-secrets.yaml - Contains secrets from
01_basic/src/main/resources/secret.properties. Values are not required at this stage as you can set them later after applying CRs or when using GitOps.
In OpenShift Serverless Logic 1.39.2, after updating a secret, you must manually restart the workflow Pod for changes to apply.
-
01-configmap_basic-props.yaml - Holds application properties from application.properties. Any change to this ConfigMap triggers an automatic Pod restart.
-
02-configmap_01-basic-resources-schemas.yaml -
Contains JSON schemas from src/main/resources/schemas.
Note You do not need to deploy certain configuration resources when using the GitOps profile.
-
03-sonataflow_basic.yaml -
The SonataFlow custom resource (CR) that defines the workflow.
podTemplate: container: image: quay.io/orchestrator/demo-basic resources: {} envFrom: - secretRef: name: basic-secretspersistence: postgresql: secretRef: name: sonataflow-psql-postgresql userKey: <your_postgres_username> passwordKey: <your_postgres_password> serviceRef: name: sonataflow-psql-postgresql port: 5432 databaseName: sonataflow databaseSchema: basicwhere:
-
postgresql:secretRef:name - Enter the Secret name for your deployment.
-
postgresql:secretRef:userKey - Enter the key for your deployment.
-
postgresql:secretRef:passwordKey - Enter the password for your deployment.
-
postgresql:serviceRef:name -
Enter the Service name for your deployment.
If you must connect to an external database, replace
serviceRefwithjdbcUrl.
By default, the script generates all the manifests without a namespace. You can specify a namespace to the script by using the --namespace flag if you know the target namespace in advance. Otherwise, you must provide the namespace when applying the manifests to the cluster.