Add NodePort to remainder of services

This commit is contained in:
Darla Ahlert 2017-03-30 19:42:51 -05:00
parent e1665cb193
commit bdf1c242ed
27 changed files with 138 additions and 54 deletions

View File

@ -60,10 +60,10 @@ spec:
- /etc/cinder/conf - /etc/cinder/conf
ports: ports:
- name: c-api - name: c-api
containerPort: {{ .Values.network.port.api }} containerPort: {{ .Values.network.api.port }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.api }} port: {{ .Values.network.api.port }}
volumeMounts: volumeMounts:
- name: pod-etc-cinder - name: pod-etc-cinder
mountPath: /etc/cinder mountPath: /etc/cinder

View File

@ -22,7 +22,7 @@ volume_name_template = %s
osapi_volume_workers = {{ .Values.api.workers }} osapi_volume_workers = {{ .Values.api.workers }}
osapi_volume_listen = 0.0.0.0 osapi_volume_listen = 0.0.0.0
osapi_volume_listen_port = {{ .Values.network.port.api }} osapi_volume_listen_port = {{ .Values.network.api.port }}
api_paste_config = /etc/cinder/api-paste.ini api_paste_config = /etc/cinder/api-paste.ini

View File

@ -18,6 +18,12 @@ metadata:
name: cinder-api name: cinder-api
spec: spec:
ports: ports:
- port: {{ .Values.network.port.api }} - port: {{ .Values.network.api.port }}
{{ if .Values.network.api.node_port.enabled }}
nodePort: {{ .Values.network.api.node_port.port }}
{{ end }}
selector: selector:
app: cinder-api app: cinder-api
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ end }}

View File

@ -62,8 +62,12 @@ keystone:
cinder_region_name: "RegionOne" cinder_region_name: "RegionOne"
network: network:
port: api:
api: 8776 name: "cinder-api"
port: 8776
node_port:
enabled: false
port: 30877
database: database:
address: mariadb address: mariadb

View File

@ -63,10 +63,10 @@ spec:
- --config-file - --config-file
- /etc/glance/glance-api.conf - /etc/glance/glance-api.conf
ports: ports:
- containerPort: {{ .Values.network.port.api }} - containerPort: {{ .Values.network.api.port }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.api }} port: {{ .Values.network.api.port }}
volumeMounts: volumeMounts:
- name: etcglance - name: etcglance
mountPath: /etc/glance mountPath: /etc/glance

View File

@ -55,10 +55,10 @@ spec:
- --config-file - --config-file
- /etc/glance/glance-registry.conf - /etc/glance/glance-registry.conf
ports: ports:
- containerPort: {{ .Values.network.port.registry }} - containerPort: {{ .Values.network.registry.port }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.registry }} port: {{ .Values.network.registry.port }}
volumeMounts: volumeMounts:
- name: etcglance - name: etcglance
mountPath: /etc/glance mountPath: /etc/glance

View File

@ -17,7 +17,7 @@ debug = {{ .Values.misc.debug }}
use_syslog = False use_syslog = False
use_stderr = True use_stderr = True
bind_port = {{ .Values.network.port.api }} bind_port = {{ .Values.network.api.port }}
workers = {{ .Values.misc.workers }} workers = {{ .Values.misc.workers }}
registry_host = glance-registry registry_host = glance-registry
# Enable Copy-on-Write # Enable Copy-on-Write

View File

@ -17,7 +17,7 @@ debug = {{ .Values.misc.debug }}
use_syslog = False use_syslog = False
use_stderr = True use_stderr = True
bind_port = {{ .Values.network.port.registry }} bind_port = {{ .Values.network.registry.port }}
workers = {{ .Values.misc.workers }} workers = {{ .Values.misc.workers }}
[database] [database]

View File

@ -18,6 +18,12 @@ metadata:
name: glance-api name: glance-api
spec: spec:
ports: ports:
- port: {{ .Values.network.port.api }} - port: {{ .Values.network.api.port }}
{{ if .Values.network.api.node_port.enabled }}
nodePort: .Values.network.api.node_port.port
{{ end }}
selector: selector:
app: glance-api app: glance-api
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ end }}

View File

@ -18,6 +18,12 @@ metadata:
name: glance-registry name: glance-registry
spec: spec:
ports: ports:
- port: {{ .Values.network.port.registry }} - port: {{ .Values.network.registry.port }}
{{ if .Values.network.registry.node_port.enabled }}
nodePort: {{ .Values.network.register.node_port.port }}
{{ end }}
selector: selector:
app: glance-registry app: glance-registry
{{ if .Values.network.registry.node_port.enabled }}
type: NodePort
{{ end }}

View File

@ -64,9 +64,18 @@ keystone:
glance_region_name: "RegionOne" glance_region_name: "RegionOne"
network: network:
port: api:
api: 9292 name: "glance-api"
registry: 9191 port: 9292
node_port:
enabled: false
port: 30092
registry:
name: "glance-registry"
port: 9191
node_port:
enabled: false
port: 30091
database: database:
address: mariadb address: mariadb

View File

@ -61,9 +61,9 @@ spec:
- /tmp/start.sh - /tmp/start.sh
ports: ports:
- name: api-public - name: api-public
containerPort: {{ .Values.network.port.api }} containerPort: {{ .Values.network.api.port }}
- name: api-admin - name: api-admin
containerPort: {{ .Values.network.port.admin }} containerPort: {{ .Values.network.admin.port }}
lifecycle: lifecycle:
preStop: preStop:
exec: exec:
@ -73,8 +73,8 @@ spec:
- graceful-stop - graceful-stop
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.api }} port: {{ .Values.network.api.port }}
volumeMounts: volumeMounts:
{{ toYaml $mounts_keystone_api.volumeMounts | indent 12 }} {{ toYaml $mounts_keystone_api.volumeMounts | indent 12 }}
volumes: volumes:
{{ toYaml $mounts_keystone_api.volumes | indent 8 }} {{ toYaml $mounts_keystone_api.volumes | indent 8 }}

View File

@ -12,13 +12,13 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
Listen 0.0.0.0:{{ .Values.network.port.api }} Listen 0.0.0.0:{{ .Values.network.api.port }}
Listen 0.0.0.0:{{ .Values.network.port.admin }} Listen 0.0.0.0:{{ .Values.network.admin.port }}
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
<VirtualHost *:{{ .Values.network.port.api }}> <VirtualHost *:{{ .Values.network.api.port }}>
WSGIDaemonProcess keystone-public processes=1 threads=4 user=keystone group=keystone display-name=%{GROUP} WSGIDaemonProcess keystone-public processes=1 threads=4 user=keystone group=keystone display-name=%{GROUP}
WSGIProcessGroup keystone-public WSGIProcessGroup keystone-public
WSGIScriptAlias / /var/www/cgi-bin/keystone/main WSGIScriptAlias / /var/www/cgi-bin/keystone/main
@ -34,7 +34,7 @@ LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-A
CustomLog /dev/stdout proxy env=forwarded CustomLog /dev/stdout proxy env=forwarded
</VirtualHost> </VirtualHost>
<VirtualHost *:{{ .Values.network.port.admin }}> <VirtualHost *:{{ .Values.network.admin.port }}>
WSGIDaemonProcess keystone-admin processes=1 threads=4 user=keystone group=keystone display-name=%{GROUP} WSGIDaemonProcess keystone-admin processes=1 threads=4 user=keystone group=keystone display-name=%{GROUP}
WSGIProcessGroup keystone-admin WSGIProcessGroup keystone-admin
WSGIScriptAlias / /var/www/cgi-bin/keystone/admin WSGIScriptAlias / /var/www/cgi-bin/keystone/admin

View File

@ -19,8 +19,18 @@ metadata:
spec: spec:
ports: ports:
- name: keystone-api-public - name: keystone-api-public
port: {{ .Values.network.port.api }} port: {{ .Values.network.api.port }}
{{ if .Values.network.api.node_port.enabled }}
nodePort: {{ .Values.network.api.node_port.port }}
{{ end }}
- name: keystone-api-admin - name: keystone-api-admin
port: {{ .Values.network.port.admin }} port: {{ .Values.network.admin.port }}
{{ if .Values.network.admin.node_port.enabled }}
nodePort: {{ .Values.network.admin.node_port.port }}
{{ end }}
selector: selector:
app: keystone-api app: keystone-api
{{ if .Values.network.api.node_port.enabled or
.Values.network.admin.node_port.enabled}}
type: NodePort
{{ end }}

View File

@ -46,9 +46,18 @@ keystone:
admin_project_name: admin admin_project_name: admin
network: network:
port: api:
admin: 35357 name: "keystone-api"
api: 5000 port: 5000
node_port:
enabled: false
port: 30500
admin:
name: "keystone-admin"
port: 35357
node_port:
enabled: false
port: 30357
dependencies: dependencies:
api: api:

View File

@ -58,7 +58,7 @@ spec:
- --config-file - --config-file
- /etc/neutron/metadata-agent.ini - /etc/neutron/metadata-agent.ini
ports: ports:
- containerPort: {{ .Values.network.port.metadata }} - containerPort: {{ .Values.network.metadata.port }}
volumeMounts: volumeMounts:
- name: neutronconf - name: neutronconf
mountPath: /etc/neutron/neutron.conf mountPath: /etc/neutron/neutron.conf

View File

@ -61,10 +61,10 @@ spec:
memory: {{ .Values.resources.server.requests.memory | quote }} memory: {{ .Values.resources.server.requests.memory | quote }}
{{- end }} {{- end }}
ports: ports:
- containerPort: {{ .Values.network.port.server }} - containerPort: {{ .Values.network.server.port }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.server }} port: {{ .Values.network.server.port }}
volumeMounts: volumeMounts:
- name: neutronconf - name: neutronconf
mountPath: /etc/neutron/neutron.conf mountPath: /etc/neutron/neutron.conf

View File

@ -28,13 +28,13 @@ endpoint_type = adminURL
# Nova metadata service IP and port # Nova metadata service IP and port
nova_metadata_ip = {{ include "helm-toolkit.nova_metadata_host" . }} nova_metadata_ip = {{ include "helm-toolkit.nova_metadata_host" . }}
nova_metadata_port = {{ .Values.network.port.metadata }} nova_metadata_port = {{ .Values.network.metadata.port }}
nova_metadata_protocol = http nova_metadata_protocol = http
# Metadata proxy shared secret # Metadata proxy shared secret
metadata_proxy_shared_secret = {{ .Values.neutron.metadata_secret }} metadata_proxy_shared_secret = {{ .Values.neutron.metadata_secret }}
metadata_port = {{ .Values.network.port.metadata }} metadata_port = {{ .Values.network.metadata.port }}
# Workers and backlog requests # Workers and backlog requests
metadata_workers = {{ .Values.metadata.workers }} metadata_workers = {{ .Values.metadata.workers }}

View File

@ -18,7 +18,7 @@ use_syslog = False
use_stderr = True use_stderr = True
bind_host = {{ .Values.network.ip_address }} bind_host = {{ .Values.network.ip_address }}
bind_port = {{ .Values.network.port.server }} bind_port = {{ .Values.network.server.port }}
#lock_path = /var/lock/neutron #lock_path = /var/lock/neutron
api_paste_config = /usr/share/neutron/api-paste.ini api_paste_config = /usr/share/neutron/api-paste.ini

View File

@ -18,6 +18,12 @@ metadata:
name: neutron-server name: neutron-server
spec: spec:
ports: ports:
- port: {{ .Values.network.port.server }} - port: {{ .Values.network.server.port }}
{{ if .Values.network.server.node_port.enabled }}
nodePort: {{ .Values.network.server.node_port.port }}
{{ end }}
selector: selector:
app: neutron-server app: neutron-server
{{ if .Values.network.server.node_port.enabled }}
type: NodePort
{{ end }}

View File

@ -78,9 +78,15 @@ network:
interface: interface:
external: enp12s0f0 external: enp12s0f0
default: enp11s0f0 default: enp11s0f0
port: server:
server: 9696 name: "neutron-server"
metadata: 8775 port: 9696
node_port:
enabled: false
port: 30096
metadata:
name: "neutron-metadata"
port: 8775
memcached: memcached:
host: memcached host: memcached

View File

@ -63,10 +63,10 @@ spec:
- nova-api-metadata - nova-api-metadata
- --config-file=/etc/nova/nova.conf - --config-file=/etc/nova/nova.conf
ports: ports:
- containerPort: {{ .Values.network.port.metadata }} - containerPort: {{ .Values.network.metadata.port }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.metadata }} port: {{ .Values.network.metadata.port }}
volumeMounts: volumeMounts:
- name: novaconf - name: novaconf
mountPath: /etc/nova/nova.conf mountPath: /etc/nova/nova.conf

View File

@ -62,10 +62,10 @@ spec:
- nova-api - nova-api
- --config-file=/etc/nova/nova.conf - --config-file=/etc/nova/nova.conf
ports: ports:
- containerPort: {{ .Values.network.port.osapi }} - containerPort: {{ .Values.network.osapi.port }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.osapi }} port: {{ .Values.network.osapi.port }}
volumeMounts: volumeMounts:
- name: novaconf - name: novaconf
mountPath: /etc/nova/nova.conf mountPath: /etc/nova/nova.conf

View File

@ -23,7 +23,7 @@ force_config_drive = {{ .Values.nova.default.force_config_drive }}
state_path = /var/lib/nova state_path = /var/lib/nova
osapi_compute_listen = {{ .Values.network.ip_address }} osapi_compute_listen = {{ .Values.network.ip_address }}
osapi_compute_listen_port = {{ .Values.network.port.osapi }} osapi_compute_listen_port = {{ .Values.network.osapi.port }}
osapi_compute_workers = {{ .Values.nova.default.osapi_workers }} osapi_compute_workers = {{ .Values.nova.default.osapi_workers }}
workers = {{ .Values.nova.default.osapi_workers }} workers = {{ .Values.nova.default.osapi_workers }}
@ -44,11 +44,11 @@ transport_url = rabbit://{{ .Values.rabbitmq.admin_user }}:{{ .Values.rabbitmq.a
[vnc] [vnc]
novncproxy_host = {{ .Values.network.ip_address }} novncproxy_host = {{ .Values.network.ip_address }}
novncproxy_port = {{ .Values.network.port.novncproxy }} novncproxy_port = {{ .Values.network.novncproxy.port }}
vncserver_listen = 0.0.0.0 vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = {{ .Values.network.ip_address }} vncserver_proxyclient_address = {{ .Values.network.ip_address }}
novncproxy_base_url = http://{{ .Values.network.external_ips }}:{{ .Values.network.port.novncproxy }}/vnc_auto.html novncproxy_base_url = http://{{ .Values.network.external_ips }}:{{ .Values.network.novncproxy.port }}/vnc_auto.html
[oslo_concurrency] [oslo_concurrency]
lock_path = /var/lib/nova/tmp lock_path = /var/lib/nova/tmp

View File

@ -19,6 +19,12 @@ metadata:
spec: spec:
ports: ports:
- name: nova-metadata - name: nova-metadata
port: {{ .Values.network.port.metadata }} port: {{ .Values.network.metadata.port }}
{{ if .Values.network.metadata.node_port.enabled }}
nodePort: {{ .Values.network.metadata.node_port.port }}
{{ end }}
selector: selector:
app: nova-api app: nova-api
{{ if .Values.network.metadata.node_port.enabled }}
type: NodePort
{{ end }}

View File

@ -22,6 +22,12 @@ metadata:
spec: spec:
ports: ports:
- name: nova-osapi - name: nova-osapi
port: {{ .Values.network.port.osapi }} port: {{ .Values.network.osapi.port }}
{{ if .Values.network.osapi.node_port.enabled }}
nodePort: {{ .Values.network.osapi.node_port.port }}
{{ end }}
selector: selector:
app: nova-osapi app: nova-osapi
{{ if .Values.network.osapi.node_port.enabled }}
type: NodePort
{{ end }}

View File

@ -61,11 +61,21 @@ network:
- "8.8.8.8" - "8.8.8.8"
kubernetes_domain: "cluster.local" kubernetes_domain: "cluster.local"
other_domains: "" other_domains: ""
osapi:
port: name: "nova-osapi"
osapi: 8774 port: 8774
metadata: 8775 node_port:
novncproxy: 6080 enabled: false
port: 30774
metadata:
name: "nova-metadata"
port: 8775
node_port:
enabled: false
port: 30775
novncproxy:
name: "nova-novncproxy"
port: 6080
nova: nova:
default: default: