acc3c0bb54
* Neutron control service runs as a replication controller * Fixed bootstrap to connect to the MariaDB service * Config files are fixed for Kubernetes with underscores * Fixed bugs in bootstrap * Fixed typo in service_resources.yaml * Preserving the existing behavior (keystone_database_address / neutron_database_address, but all on the same port number) as Kolla-Ansible Current config file: api_interface_address: "0.0.0.0" memcached_servers: "memcached" keystone_database_address: "mariadb" neutron_database_address: "mariadb" keystone_admin_url: "http://keystone-admin:35357/v3" keystone_internal_url: "http://keystone-public:5000/v3" keystone_public_url: "http://keystone-public:5000/v3" glance_registry_host: "glance-registry" glance_database_address: "mariadb" enable_rabbitmq_cluster: "no" Change-Id: I87492b554836bcd2be09b972450c3964c526d91b Partially-implements: blueprint remove-net-host Partially-implements: blueprint replication-controllers Partially-implements: blueprint openstack-services
71 lines
2.3 KiB
Django/Jinja
71 lines
2.3 KiB
Django/Jinja
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: neutron-bootstrap
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: neutron-bootstrap
|
|
spec:
|
|
containers:
|
|
- image: "{{ kolla_toolbox_image_full }}"
|
|
name: creating-database
|
|
command: ["sh", "-c"]
|
|
args:
|
|
- ansible localhost -m mysql_db -a
|
|
"login_host='{{ neutron_database_address }}'
|
|
login_port='{{ mariadb_port }}'
|
|
login_user='{{ database_user }}'
|
|
login_password='{{ database_password }}'
|
|
name='{{ neutron_database_name }}'"
|
|
env:
|
|
- name: ANSIBLE_NOCOLOR
|
|
value: "1"
|
|
- name: ANSIBLE_LIBRARY
|
|
value: "/usr/share/ansible"
|
|
- image: "{{ kolla_toolbox_image_full }}"
|
|
name: creating-user-permissions
|
|
command: ["sh", "-c"]
|
|
args:
|
|
- ansible localhost -m mysql_user -a
|
|
"login_host='{{ neutron_database_address }}'
|
|
login_port='{{ mariadb_port }}'
|
|
login_user='{{ database_user }}'
|
|
login_password='{{ database_password }}'
|
|
name='{{ neutron_database_name }}'
|
|
password='{{ neutron_database_password }}'
|
|
host='%'
|
|
priv='{{ neutron_database_name }}.*:ALL'
|
|
append_privs='yes'"
|
|
env:
|
|
- name: ANSIBLE_NOCOLOR
|
|
value: "1"
|
|
- name: ANSIBLE_LIBRARY
|
|
value: "/usr/share/ansible"
|
|
- image: "{{ neutron_server_image_full }}"
|
|
name: neutron-server
|
|
env:
|
|
- name: KOLLA_BOOTSTRAP
|
|
value: ""
|
|
- name: KOLLA_CONFIG_STRATEGY
|
|
value: "{{ config_strategy }}"
|
|
volumeMounts:
|
|
- mountPath: {{ container_config_directory }}
|
|
name: neutron-server-config
|
|
readOnly: true
|
|
- mountPath: /var/log/kolla
|
|
name: kolla-logs
|
|
volumes:
|
|
- name: neutron-server-config
|
|
configMap:
|
|
name: neutron-server-configmap
|
|
items:
|
|
- key: neutron.conf
|
|
path: neutron.conf
|
|
- key: config.json
|
|
path: config.json
|
|
- key: ml2-conf.ini
|
|
path: ml2_conf.ini
|
|
- name: kolla-logs
|
|
emptyDir: {}
|
|
restartPolicy: OnFailure |