Configuring the Production Stream Instance
Now we're going to do the same steps in the production environment that we did in the development environment.
-
Click the
Stream Prodtop tab. -
In Stream’s own top nav, at the far right, click the
AAbutton to open theAccountmenu. -
Click
Global Settingson this menu. -
This opens Stream's
Global Settingssidebar, with the focus onGeneral Settings. ClickGit Settings, a few links further down the same sidebar. -
On the nested
Git Settingsnav bar, click theRemotetab. -
In the
Remote URLfield, enter or paste same the string you earlier copied from the remote repo and pasted into this field in thedevinstance. If you used the default naming, this will be:git@gitops-gitea:gituser/stream-config.git(If you named your Gitea repo something other than
stream-config, then modify the<reponame>.gitsubstring of the above URL to match your repo name.) -
Stream's
Authentication typedrop-down defaults toSSH, which is the transport we want. Copy and paste the following key into theSSH private keyfield:-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAaAAAABNlY2RzYS
1zaGEyLW5pc3RwMjU2AAAACG5pc3RwMjU2AAAAQQREL+oz/hLb4W8/TA7dQR7em4F6G1RU
3NhujQOjHe2zVUZapKhEdOxmqO3av5ehGOVMyAYmmhosOPkpHTwGCCc0AAAAsGHLF+hhyx
foAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEQv6jP+Etvhbz9M
Dt1BHt6bgXobVFTc2G6NA6Md7bNVRlqkqER07Gao7dq/l6EY5UzIBiaaGiw4+SkdPAYIJz
QAAAAgSo+UVX4HKkk4XZP39rDcCNEuVpz4teuEqR03dDkGFTwAAAAYc2FuZGJveCtnaXR1
c2VyQGNyaWJsLmlv
-----END OPENSSH PRIVATE KEY----- -
Set the
SSH strict host key checkingtoggle toNo. As earlier on thedevinstance, this will allow your first push to the remote repo to accept the host key information. -
Click
Save, and look for a green confirmation message.
NOTE: If you see an error about strict key checking here, make sure you complete the following steps. Stream checks the key prior to a push, and can throw errors if strict checking is not re-enabled. -
Set the
SSH strict host key checkingtoggle back toYes. After the first save, Stream checked the SSH key; now we need to re-enable strict checking before we can actually push. -
Click
Saveagain.
As we saw for the development branch – and reiterated just above – it's a best practice to toggle SSH strict host key checking back to Yes after you've established the SSH transport.
Now we're almost ready to put the production Stream instance under GitOps workflow control. En route, we'll commit the config changes we just made, so that they aren't lost on restart. Stay on the Stream Prod top tab for these next steps:
- In this Stream instance's top nav, click the
Version Control() button, and from theVersion Controlfly-out, clickCommit. - In the resulting
Git Changes – Globaldialog, enter a commit message (e.g.,Added prod remote config). - Click
Commit Only.
Now, let's get into our Push workflow.
- In
Git Settings, click the nestedGeneraltab. - From the
Branchdrop-down, selectprod. - Click
Save. - In the resulting confirmation dialog, click
Yes. (This will restart Stream to enable the new branch connection.) - After Stream restarts, set the
GitOps Workflowdrop-down toPush. - Again click
Save.
After you've completed this last step, you should see a green confirmation message, and a red banner like this at the top of the production Stream instance's UI:

This banner warns us that this Stream instance's configuration is now entirely dependent on push commands from its remote repo. The message also us how to restore the instance's independent workflow.
Before we can proceed to working with GitOps, we need to do one more Git operation, to record the workflow change.
- In Stream's top nav, again click the
Version Controlbutton (), and from theVersion Controlfly-out, clickCommit. - In the resulting
Git Changes – Globaldialog, enter a commit message (e.g.,Switched to GitOps Push workflow). - Click
Commit and Push. - Look for a green confirmation message.
Now we're ready to do some GitOps.