Deploy Database For Fight Microservice
Last updated
Last updated
Click on icon located at top right corner of web console.
Copy this YAML snippet to the editor and click Create button.
YAML snippet:
A fights-db-config
Secret object should be created. You can view the secret values by click on Reveal values link.
Copy this YAML snippet to the editor and click Create button. Please note that the fights-db-config
Secret object gets bound to MongoDB container as environment variables.
YAML snippet:
A fights-db
Deployment object should be created and there is 1 Pod running.
Copy this YAML snippet to the editor and click Create button.
YAML snippet:
A fights-db
Service object should be created. Go to Pods tab you should be able to see the Service is pointing and will be forwarding traffic to the fights-db-xxxxxxx
Pod which is the MongoDB pod.
Go to Topology menu, you should see fights-db
MongoDB entity.
How to create Kubernetes resources e.g. Secret, Deployment, and Service objects with YAML via OpenShift web console.
How to view actual value stored in the Secret object.
How to check which pod(s) the Service object is pointing and will be forwarding traffic to.
Click on icon located at top right corner of web console.
Click on icon located at top right corner of web console.