先决条件,需要有红帽账号
参考文档
https://access.redhat.com/documentation/en-us/red_hat_amq/7.7/html/deploying_amq_broker_on_openshift/deploying-broker-on-ocp-using-operator_broker-ocp
1.下载operatorAMQ Broker Software Downloads page.
选择AMQ Broker 7.7.0 Operator Installation and Example Files
2.解压这个文档,到一个目录
3.执行下面命令
oc login -u system:admin
oc new-project <project_name>
oc create -f deploy/service_account.yaml
oc create -f deploy/role.yaml
oc create -f deploy/role_binding.yaml
oc create -f deploy/crds/broker_activemqartemis_crd.yaml
oc create -f deploy/crds/broker_activemqartemisaddress_crd.yaml
oc create -f deploy/crds/broker_activemqartemisscaledown_crd.yaml
$ oc secrets link --for=pull default <secret-name> $ oc secrets link --for=pull deployer <secret-name> $ oc secrets link --for=pull builder <secret-name>
参考文档
https://access.redhat.com/terms-based-registry/
oc create -f xxxx-secret.yml --namespace=NAMESPACEHERE
修改amq operator
apiVersion: v1 kind: Pod metadata: name: somepod namespace: all spec: containers: - name: web image: registry.redhat.io/REPONAME imagePullSecrets: - name: 123456-xxxx-pull-secret
继续
oc create -f deploy/operator.yaml