Harbor + kolla-ansible 部署openstack

环境规划

192.168.8.141deploy(部署kolla-ansible加Harbor)centos 8.3
192.168.8.142nova2centos 8.3
192.168.8.143ctrlcentos 8.3
192.168.8.144nova1centos 8.3

每台机器两个网卡ens33(network_interface)ens34(neutron_external_interface),所有机器做sshkey认证,配置NTP,关闭selinux,关闭firewalld.

yum update 

yum install epel-release 

yum install python3-pip gcc libffi-devel python3-devel openssl-devel 

pip3 install --upgrade pip

pip3 install docker

pip3 install setuptools_rust

Harbor 安装

git clone https://github.com/goharbor/harbor.git

pip3 install docker-compose

修改harbor/harbor.yml

./install.sh

https 配置

cd /data/secret

  openssl genrsa -out ca.key 4096
  openssl req -x509 -new -nodes -sha512 -days 3650  -subj "/CN=192.168.8.141"  -key ca.key  -out ca.crt
  openssl genrsa -out server.key 4096
  openssl req  -new -sha512  -subj "/CN=192.168.8.141"  -key server.key  -out server.csr

cat v3.ext
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names

[alt_names]
DNS.1=192.168.8.141


  openssl x509 -req -sha512 -days 3650 -extfile v3.ext -CA ca.crt -CAkey ca.key -CAcreateserial -in server.csr -out server.crt

./install.sh

kolla-ansible 

pip3 install kolla-ansible

yum install ansible 

cd /etc/kolla/

cp /usr/local/share/kolla-ansible/ansible/inventory/* .

cp /usr/local/share/kolla-ansible/etc_examples/kolla/* .
 


[root@deploy kolla]# cat globals.yml |grep -v ^# |grep -v ^$
---
config_strategy: "COPY_ALWAYS"
kolla_base_distro: "centos"
kolla_install_type: "binary"
openstack_release: "victoria"
node_custom_config: "/etc/kolla/config"
kolla_internal_vip_address: "192.168.8.250"
docker_registry: 192.168.8.141
docker_registry_username: admin
docker_namespace: "kolla"
network_interface: "ens33"
neutron_external_interface: "ens34"
neutron_plugin_agent: "linuxbridge"
openstack_region_name: "RegionOne"
enable_mariadb: "yes"
enable_memcached: "yes"
enable_chrony: "yes"
enable_fluentd: "yes"
enable_neutron_provider_networks: "yes"
enable_nova_ssh: "yes"
nova_compute_virt_type: "qemu"
nova_console: "novnc"
tempest_image_id:
tempest_flavor_ref_id:
tempest_public_network_id:

kolla-ansible  pull 下载image,之后把image推送到Harbor私有仓库.

kolla-ansible prechecks -i multinode

kolla-ansible deploy -i multinode

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

python知行通

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值