configmap.yaml.j2 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. # More info about the template: https://docs.openstack.org/kuryr-kubernetes/latest/installation/containerized.html#generating-kuryr-resource-definitions-for-kubernetes
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: kuryr-config
  6. namespace: {{ kuryr_namespace }}
  7. data:
  8. kuryr.conf: |+
  9. [DEFAULT]
  10. #
  11. # From kuryr_kubernetes
  12. #
  13. # Directory for Kuryr vif binding executables. (string value)
  14. #bindir = /usr/libexec/kuryr
  15. # If set to true, the logging level will be set to DEBUG instead of the default
  16. # INFO level. (boolean value)
  17. # Note: This option can be changed without restarting.
  18. #debug = false
  19. # DEPRECATED: If set to false, the logging level will be set to WARNING instead
  20. # of the default INFO level. (boolean value)
  21. # This option is deprecated for removal.
  22. # Its value may be silently ignored in the future.
  23. #verbose = true
  24. # The name of a logging configuration file. This file is appended to any
  25. # existing logging configuration files. For details about logging configuration
  26. # files, see the Python logging module documentation. Note that when logging
  27. # configuration files are used then all logging configuration is set in the
  28. # configuration file and other logging configuration options are ignored (for
  29. # example, logging_context_format_string). (string value)
  30. # Note: This option can be changed without restarting.
  31. # Deprecated group/name - [DEFAULT]/log_config
  32. #log_config_append = <None>
  33. # Defines the format string for %%(asctime)s in log records. Default:
  34. # %(default)s . This option is ignored if log_config_append is set. (string
  35. # value)
  36. #log_date_format = %Y-%m-%d %H:%M:%S
  37. # (Optional) Name of log file to send logging output to. If no default is set,
  38. # logging will go to stderr as defined by use_stderr. This option is ignored if
  39. # log_config_append is set. (string value)
  40. # Deprecated group/name - [DEFAULT]/logfile
  41. #log_file = /var/log/kuryr/kuryr-controller.log
  42. # (Optional) The base directory used for relative log_file paths. This option
  43. # is ignored if log_config_append is set. (string value)
  44. # Deprecated group/name - [DEFAULT]/logdir
  45. #log_dir = <None>
  46. # Uses logging handler designed to watch file system. When log file is moved or
  47. # removed this handler will open a new log file with specified path
  48. # instantaneously. It makes sense only if log_file option is specified and
  49. # Linux platform is used. This option is ignored if log_config_append is set.
  50. # (boolean value)
  51. #watch_log_file = false
  52. # Use syslog for logging. Existing syslog format is DEPRECATED and will be
  53. # changed later to honor RFC5424. This option is ignored if log_config_append
  54. # is set. (boolean value)
  55. #use_syslog = false
  56. # Syslog facility to receive log lines. This option is ignored if
  57. # log_config_append is set. (string value)
  58. #syslog_log_facility = LOG_USER
  59. # Log output to standard error. This option is ignored if log_config_append is
  60. # set. (boolean value)
  61. #use_stderr = true
  62. # Format string to use for log messages with context. (string value)
  63. #logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
  64. # Format string to use for log messages when context is undefined. (string
  65. # value)
  66. #logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
  67. # Additional data to append to log message when logging level for the message
  68. # is DEBUG. (string value)
  69. #logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
  70. # Prefix each line of exception output with this format. (string value)
  71. #logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
  72. # Defines the format string for %(user_identity)s that is used in
  73. # logging_context_format_string. (string value)
  74. #logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
  75. # List of package logging levels in logger=LEVEL pairs. This option is ignored
  76. # if log_config_append is set. (list value)
  77. #default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN,taskflow=WARN,keystoneauth=WARN,oslo.cache=INFO,dogpile.core.dogpile=INFO
  78. # Enables or disables publication of error events. (boolean value)
  79. #publish_errors = false
  80. # The format for an instance that is passed with the log message. (string
  81. # value)
  82. #instance_format = "[instance: %(uuid)s] "
  83. # The format for an instance UUID that is passed with the log message. (string
  84. # value)
  85. #instance_uuid_format = "[instance: %(uuid)s] "
  86. # Enables or disables fatal status of deprecations. (boolean value)
  87. #fatal_deprecations = false
  88. [binding]
  89. driver = kuryr.lib.binding.drivers.vlan
  90. link_iface = eth0
  91. [kubernetes]
  92. #
  93. # From kuryr_kubernetes
  94. #
  95. # The root URL of the Kubernetes API (string value)
  96. api_root = {{ openshift.master.api_url }}
  97. # Absolute path to client cert to connect to HTTPS K8S_API (string value)
  98. # ssl_client_crt_file = /etc/kuryr/controller.crt
  99. # Absolute path client key file to connect to HTTPS K8S_API (string value)
  100. # ssl_client_key_file = /etc/kuryr/controller.key
  101. # Absolute path to ca cert file to connect to HTTPS K8S_API (string value)
  102. ssl_ca_crt_file = /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
  103. # The token to talk to the k8s API
  104. token_file = /var/run/secrets/kubernetes.io/serviceaccount/token
  105. # HTTPS K8S_API server identity verification (boolean value)
  106. # TODO (apuimedo): Make configurable
  107. ssl_verify_server_crt = True
  108. # The driver to determine OpenStack project for pod ports (string value)
  109. pod_project_driver = default
  110. # The driver to determine OpenStack project for services (string value)
  111. service_project_driver = default
  112. # The driver to determine Neutron subnets for pod ports (string value)
  113. pod_subnets_driver = default
  114. # The driver to determine Neutron subnets for services (string value)
  115. service_subnets_driver = default
  116. # The driver to determine Neutron security groups for pods (string value)
  117. pod_security_groups_driver = default
  118. # The driver to determine Neutron security groups for services (string value)
  119. service_security_groups_driver = default
  120. # The driver that provides VIFs for Kubernetes Pods. (string value)
  121. pod_vif_driver = nested-vlan
  122. [neutron]
  123. # Configuration options for OpenStack Neutron
  124. #
  125. # From kuryr_kubernetes
  126. #
  127. # Authentication URL (string value)
  128. auth_url = {{ kuryr_openstack_auth_url }}
  129. # Authentication type to load (string value)
  130. # Deprecated group/name - [neutron]/auth_plugin
  131. auth_type = password
  132. # Domain ID to scope to (string value)
  133. user_domain_name = {{ kuryr_openstack_user_domain_name }}
  134. # User's password (string value)
  135. password = {{ kuryr_openstack_password }}
  136. # Domain name containing project (string value)
  137. project_domain_name = {{ kuryr_openstack_project_domain_name }}
  138. # Project ID to scope to (string value)
  139. # Deprecated group/name - [neutron]/tenant-id
  140. project_id = {{ kuryr_openstack_project_id }}
  141. # Token (string value)
  142. #token = <None>
  143. # Trust ID (string value)
  144. #trust_id = <None>
  145. # User's domain id (string value)
  146. #user_domain_id = <None>
  147. # User id (string value)
  148. #user_id = <None>
  149. # Username (string value)
  150. # Deprecated group/name - [neutron]/user-name
  151. username = {{kuryr_openstack_username }}
  152. # Whether a plugging operation is failed if the port to plug does not become
  153. # active (boolean value)
  154. #vif_plugging_is_fatal = false
  155. # Seconds to wait for port to become active (integer value)
  156. #vif_plugging_timeout = 0
  157. [neutron_defaults]
  158. pod_security_groups = {{ kuryr_openstack_pod_sg_id }}
  159. pod_subnet = {{ kuryr_openstack_pod_subnet_id }}
  160. service_subnet = {{ kuryr_openstack_service_subnet_id }}
  161. project = {{ kuryr_openstack_pod_project_id }}
  162. # TODO (apuimedo): Remove the duplicated line just after this one once the
  163. # RDO packaging contains the upstream patch
  164. worker_nodes_subnet = {{ kuryr_openstack_worker_nodes_subnet_id }}
  165. [pod_vif_nested]
  166. worker_nodes_subnet = {{ kuryr_openstack_worker_nodes_subnet_id }}
  167. kuryr-cni.conf: |+
  168. [DEFAULT]
  169. #
  170. # From kuryr_kubernetes
  171. #
  172. # If set to true, the logging level will be set to DEBUG instead of the default
  173. # INFO level. (boolean value)
  174. # Note: This option can be changed without restarting.
  175. #debug = false
  176. # The name of a logging configuration file. This file is appended to any
  177. # existing logging configuration files. For details about logging configuration
  178. # files, see the Python logging module documentation. Note that when logging
  179. # configuration files are used then all logging configuration is set in the
  180. # configuration file and other logging configuration options are ignored (for
  181. # example, logging_context_format_string). (string value)
  182. # Note: This option can be changed without restarting.
  183. # Deprecated group/name - [DEFAULT]/log_config
  184. #log_config_append = <None>
  185. # Defines the format string for %%(asctime)s in log records. Default:
  186. # %(default)s . This option is ignored if log_config_append is set. (string
  187. # value)
  188. #log_date_format = %Y-%m-%d %H:%M:%S
  189. # (Optional) Name of log file to send logging output to. If no default is set,
  190. # logging will go to stderr as defined by use_stderr. This option is ignored if
  191. # log_config_append is set. (string value)
  192. # Deprecated group/name - [DEFAULT]/logfile
  193. #log_file = /var/log/kuryr/cni.log
  194. # (Optional) The base directory used for relative log_file paths. This option
  195. # is ignored if log_config_append is set. (string value)
  196. # Deprecated group/name - [DEFAULT]/logdir
  197. #log_dir = <None>
  198. # Uses logging handler designed to watch file system. When log file is moved or
  199. # removed this handler will open a new log file with specified path
  200. # instantaneously. It makes sense only if log_file option is specified and
  201. # Linux platform is used. This option is ignored if log_config_append is set.
  202. # (boolean value)
  203. #watch_log_file = false
  204. # Use syslog for logging. Existing syslog format is DEPRECATED and will be
  205. # changed later to honor RFC5424. This option is ignored if log_config_append
  206. # is set. (boolean value)
  207. #use_syslog = false
  208. # Syslog facility to receive log lines. This option is ignored if
  209. # log_config_append is set. (string value)
  210. #syslog_log_facility = LOG_USER
  211. # Log output to standard error. This option is ignored if log_config_append is
  212. # set. (boolean value)
  213. use_stderr = true
  214. # Format string to use for log messages with context. (string value)
  215. #logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
  216. # Format string to use for log messages when context is undefined. (string
  217. # value)
  218. #logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
  219. # Additional data to append to log message when logging level for the message
  220. # is DEBUG. (string value)
  221. #logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
  222. # Prefix each line of exception output with this format. (string value)
  223. #logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
  224. # Defines the format string for %(user_identity)s that is used in
  225. # logging_context_format_string. (string value)
  226. #logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
  227. # List of package logging levels in logger=LEVEL pairs. This option is ignored
  228. # if log_config_append is set. (list value)
  229. #default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN,taskflow=WARN,keystoneauth=WARN,oslo.cache=INFO,dogpile.core.dogpile=INFO
  230. # Enables or disables publication of error events. (boolean value)
  231. #publish_errors = false
  232. # The format for an instance that is passed with the log message. (string
  233. # value)
  234. #instance_format = "[instance: %(uuid)s] "
  235. # The format for an instance UUID that is passed with the log message. (string
  236. # value)
  237. #instance_uuid_format = "[instance: %(uuid)s] "
  238. # Enables or disables fatal status of deprecations. (boolean value)
  239. #fatal_deprecations = false
  240. [binding]
  241. driver = kuryr.lib.binding.drivers.vlan
  242. link_iface = {{ kuryr_cni_link_interface }}
  243. [kubernetes]
  244. #
  245. # From kuryr_kubernetes
  246. #
  247. # The root URL of the Kubernetes API (string value)
  248. api_root = {{ openshift.master.api_url }}
  249. # The token to talk to the k8s API
  250. token_file = /etc/kuryr/token
  251. # Absolute path to ca cert file to connect to HTTPS K8S_API (string value)
  252. ssl_ca_crt_file = /etc/kuryr/ca.crt
  253. # HTTPS K8S_API server identity verification (boolean value)
  254. # TODO (apuimedo): Make configurable
  255. ssl_verify_server_crt = True