This documentation is for a release that is no longer maintained
See documentation for the latest supported version.Este contenido no está disponible en el idioma seleccionado.
Chapter 1. Deploying Developer Hub on AKS with the Operator
You can deploy your Developer Hub on AKS using the Red Hat Developer Hub Operator.
Procedure
Obtain the Red Hat Developer Hub Operator manifest file, named
rhdh-operator-<VERSION>.yaml, and modify the default configuration ofdb-statefulset.yamlanddeployment.yamlby adding the following fragment:securityContext: fsGroup: 300
securityContext: fsGroup: 300Copy to Clipboard Copied! Toggle word wrap Toggle overflow Following is the specified locations in the manifests:
db-statefulset.yaml: | spec.template.spec deployment.yaml: | spec.template.spec
db-statefulset.yaml: | spec.template.spec deployment.yaml: | spec.template.specCopy to Clipboard Copied! Toggle word wrap Toggle overflow Apply the modified Operator manifest to your Kubernetes cluster:
kubectl apply -f rhdh-operator-<VERSION>.yaml
kubectl apply -f rhdh-operator-<VERSION>.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteExecution of the previous command is cluster-scoped and requires appropriate cluster privileges.
Create an
ImagePull Secretnamedrhdh-pull-secretusing your Red Hat credentials to access images from the protectedregistry.redhat.ioas shown in the following example:kubectl -n <your_namespace> create secret docker-registry rhdh-pull-secret \ --docker-server=registry.redhat.io \ --docker-username=<redhat_user_name> \ --docker-password=<redhat_password> \ --docker-email=<email>kubectl -n <your_namespace> create secret docker-registry rhdh-pull-secret \ --docker-server=registry.redhat.io \ --docker-username=<redhat_user_name> \ --docker-password=<redhat_password> \ --docker-email=<email>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create an Ingress manifest file, named
rhdh-ingress.yaml, specifying your Developer Hub service name as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow To deploy the created Ingress, run the following command:
kubectl -n <your_namespace> apply -f rhdh-ingress.yaml
kubectl -n <your_namespace> apply -f rhdh-ingress.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
my-rhdh-app-configconfig map containing theapp-config.yamlDeveloper Hub configuration file by using the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
<my_product_secrets>secret and add a key namedBACKEND_SECRETwith aBase64-encodedstring value as shown in the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
<my_product_secrets>is your preferred Developer Hub secret name, where<my_product_secrets>specifies the identifier for your secret configuration within Developer Hub.
Create your
Backstagecustom resource (CR) manifest file named<your-rhdh-cr>and include the previously createdrhdh-pull-secretas follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
<my_product_secrets>is your preferred Developer Hub secret name, where<my_product_secrets>specifies the identifier for your secret configuration within Developer Hub.
Apply the CR manifest to your namespace:
kubectl -n my-rhdh-project apply -f rhdh.yaml
kubectl -n my-rhdh-project apply -f rhdh.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Access the deployed Developer Hub using the URL:
https://<app_address>, where <app_address> is the Ingress address obtained earlier (for example,https://108.141.70.228). Optional: To delete the CR, run the following command:
kubectl -n my-rhdh-project delete -f rhdh.yaml
kubectl -n my-rhdh-project delete -f rhdh.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow