Accessing KubeOps RPM Server
Detailed instructions on how to access the KubeOps RPM Server.
2 minute read
Accessing the KubeOps RPM Server
In order to access the KubeOps RPM server, the following /etc/yum.repos.d/kubeops.repo file must be created with this content:
[kubeops-repo]
name = RHEL 8 BaseOS
baseurl = https://rpm.kubeops.net/kubeopsRepo/
gpgcheck = 0
enabled = 1
module_hotfixes=1
The key rpmServer must be added to the kubeopsctl.yaml file:
apiVersion: kubeops/kubeopsctl/alpha/v5 # mandatory
imagePullRegistry: "registry.preprod.kubeops.net"
localRegistry: true
clusterName: "example"
kubernetesVersion: "1.28.2"
masterIP: 10.2.10.11
systemCpu: "200m"
systemMemory: "200Mi"
rpmServer: https://rpm.kubeops.net/kubeopsRepo/repodata/
zones:
- name: zone1
nodes:
master:
- name: master1
ipAdress: 10.2.10.11
status: active
kubeversion: 1.28.2
- name: master2
ipAdress: 10.2.10.12
status: active
kubeversion: 1.28.2
worker:
- name: worker1
ipAdress: 10.2.10.14
status: active
kubeversion: 1.28.2
- name: worker2
ipAdress: 10.2.10.15
status: active
kubeversion: 1.28.2
- name: zone2
nodes:
master:
- name: master3
ipAdress: 10.2.10.13
status: active
kubeversion: 1.28.2
worker:
- name: worker3
ipAdress: 10.2.10.16
status: active
kubeversion: 1.28.2
# mandatory, set to true if you want to install it into your cluster
rook-ceph: true
harbor: true
opensearch: true
opensearch-dashboards: true
logstash: true
filebeat: true
prometheus: true
opa: true
kubeops-dashboard: true
certman: true
ingress: true
keycloak: true
velero: true
harborValues:
harborpass: "password" # change to your desired password
databasePassword: "Postgres_Password" # change to your desired password
redisPassword: "Redis_Password"
externalURL: http://10.2.10.11:30002 # change to ip adress of master1
prometheusValues:
grafanaUsername: "user"
grafanaPassword: "password"
ingressValues:
externalIPs: []
keycloakValues:
keycloak:
auth:
adminUser: admin
adminPassword: admin
postgresql:
auth:
postgresPassword: ""
username: bn_keycloak
password: ""
database: bitnami_keycloak
existingSecret: ""
veleroValues:
accessKeyId: "your_s3_storage_username"
secretAccessKey: "your_s3_storage_password"
Accessing the RPM Server in an Air Gap Environment
If you have an AirGap environment, the following files must be placed in the specified directory.
kubeops.repo in /etc/yum.repos.d/
[kubeops-repo]
name = RHEL 8 BaseOS
baseurl = https://rpm.kubeops.net/kubeopsRepo/
gpgcheck = 0
enabled = 1
module_hotfixes=1
route-ens192 in /etc/sysconfig/network-scripts/
The following entry must be added to the route-ens192 file:
193.7.169.20 via <Your Gateway Adress> <network interface>
For example:
193.7.169.20 via 10.2.10.1 dev ens192
hosts in route-ens192 in /etc/
The following entry must be added to the hosts file:
193.7.169.20 rpm.kubeops.net
Test your connection
Please ensure that each node has a connection to the RPM server.The following command can be used for this:
dnf list kubeopsctl --showduplicates