Skip to main content

Posts

Showing posts from April, 2024

Foreman - Upgrade to Foreman 3.10 and Katello 4.12

    NOTE: this guide exists for Upgrading from v3.8 to v3.9 as well -->  here With the current version, the  official documentation  is quite good and can be referenced. I would recommend executing all of these commands in a tmux session so that your session will remain on the server in case anything happens to your workstation. Start by checking for running tasks that would prohibit an update: [root@katello01 ~]# foreman-rake katello:upgrade_check Next, update the katello host and reboot if yum tells you to: [root@katello01 ~]# dnf -4y --refresh update [root@katello01 ~]# dnf needs-restarting -r If there were any updates to foreman-related packages, make sure foreman is in a consistent state: [root@katello01 ~]# foreman-maintain service stop [root@katello01 ~]# foreman-installer --scenario katello When the katello services have started again, upgrade the release-rpms: [root@katello01 ~]# dnf -4y update https://yum.theforeman.org/releases/3.10...

OKD - Subpaths with routes

This is going to be a short one since the Documentation is quite good.  OpenShift Routes allow for rewriting paths to subfolders. Here's an example using the whoogle applicaiton with a dark and light theme: One option to solve this without going the ingress route is using the built-in route capabilities of rewriting the url. Here are the three route-definitions I used: [ 22:43:10 ] - archy ~/git/openshift/search> cat openshift/dark-route.yml --- apiVersion: route.openshift.io/v1 kind: Route metadata: name: search namespace: search labels: app: search spec: host: search.example.com path: / port: targetPort: 8080 to: kind: Service name: search ... [ 22:43:20 ] - archy ~/git/openshift/search> cat openshift/dark-route.yml --- apiVersion: route.openshift.io/v1 kind: Route metadata: name: search namespace: search labels: app: search-dark annotations: ...