apiVersion:kustomize.config.k8s.io/v1beta1 kind:Kustomization resources: # Find the latest tag here: https://github.com/ansible/awx-operator/releases -github.com/ansible/awx-operator/config/default?ref=1.1.4# 更改你想安装版本号。截止写文章的时候最新版本是1.2.0,但是安装报错,改为1.1.4就没问题了 # Set the image tags to match the git version from above images: -name:quay.io/ansible/awx-operator newTag:1.1.4# 与上方保持一致即可
# Specify a custom namespace in which to install AWX namespace:awx
运行以下命令进行初始部署
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
$ kustomize build . | kubectl apply -f - namespace/awx created customresourcedefinition.apiextensions.k8s.io/awxbackups.awx.ansible.com created customresourcedefinition.apiextensions.k8s.io/awxrestores.awx.ansible.com created customresourcedefinition.apiextensions.k8s.io/awxs.awx.ansible.com created serviceaccount/awx-operator-controller-manager created role.rbac.authorization.k8s.io/awx-operator-awx-manager-role created role.rbac.authorization.k8s.io/awx-operator-leader-election-role created clusterrole.rbac.authorization.k8s.io/awx-operator-metrics-reader created clusterrole.rbac.authorization.k8s.io/awx-operator-proxy-role created rolebinding.rbac.authorization.k8s.io/awx-operator-awx-manager-rolebinding created rolebinding.rbac.authorization.k8s.io/awx-operator-leader-election-rolebinding created clusterrolebinding.rbac.authorization.k8s.io/awx-operator-proxy-rolebinding created configmap/awx-operator-awx-manager-config created service/awx-operator-controller-manager-metrics-service created deployment.apps/awx-operator-controller-manager created