123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- admissionConfig:
- {% if 'admission_plugin_order' in openshift.master %}
- pluginOrderOverride:{{ openshift.master.admission_plugin_order | to_padded_yaml(level=2) }}
- {% endif %}
- {% if 'admission_plugin_config' in openshift.master %}
- pluginConfig:{{ openshift.master.admission_plugin_config | to_padded_yaml(level=2) }}
- {% endif %}
- apiLevels:
- {% if not openshift.common.version_gte_3_1_or_1_1 | bool %}
- - v1beta3
- {% endif %}
- - v1
- apiVersion: v1
- assetConfig:
- logoutURL: "{{ openshift.master.logout_url | default('') }}"
- masterPublicURL: {{ openshift.master.public_api_url }}
- publicURL: {{ openshift.master.public_console_url }}/
- {% if 'logging_public_url' in openshift.master %}
- loggingPublicURL: {{ openshift.master.logging_public_url }}
- {% endif %}
- {% if 'metrics_public_url' in openshift.master %}
- metricsPublicURL: {{ openshift.master.metrics_public_url }}
- {% endif %}
- {% if 'extension_scripts' in openshift.master %}
- extensionScripts: {{ openshift.master.extension_scripts | to_padded_yaml(1, 2) }}
- {% endif %}
- {% if 'extension_stylesheets' in openshift.master %}
- extensionStylesheets: {{ openshift.master.extension_stylesheets | to_padded_yaml(1, 2) }}
- {% endif %}
- {% if 'extensions' in openshift.master %}
- extensions: {{ openshift.master.extensions | to_padded_yaml(1, 2) }}
- {% endif %}
- servingInfo:
- bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.console_port }}
- bindNetwork: tcp4
- certFile: master.server.crt
- clientCA: ""
- keyFile: master.server.key
- maxRequestsInFlight: 0
- requestTimeoutSeconds: 0
- {% if openshift_master_ha | bool %}
- {% if openshift.master.audit_config | default(none) is not none and openshift.common.version_gte_3_2_or_1_2 | bool %}
- auditConfig:{{ openshift.master.audit_config | to_padded_yaml(level=1) }}
- {% endif %}
- controllerLeaseTTL: {{ openshift.master.controller_lease_ttl | default('30') }}
- {% endif %}
- controllers: '*'
- corsAllowedOrigins:
- {% for origin in ['127.0.0.1', 'localhost', openshift.common.ip, openshift.common.public_ip] | union(openshift.common.all_hostnames) | unique %}
- - {{ origin }}
- {% endfor %}
- {% for custom_origin in openshift.master.custom_cors_origins | default("") %}
- - {{ custom_origin }}
- {% endfor %}
- {% if 'disabled_features' in openshift.master %}
- disabledFeatures: {{ openshift.master.disabled_features | to_json }}
- {% endif %}
- {% if openshift.master.embedded_dns | bool %}
- dnsConfig:
- bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.dns_port }}
- bindNetwork: tcp4
- {% endif %}
- etcdClientInfo:
- ca: {{ "ca.crt" if (openshift.master.embedded_etcd | bool) else "master.etcd-ca.crt" }}
- certFile: master.etcd-client.crt
- keyFile: master.etcd-client.key
- urls:
- {% for etcd_url in openshift.master.etcd_urls %}
- - {{ etcd_url }}
- {% endfor %}
- {% if openshift.master.embedded_etcd | bool %}
- etcdConfig:
- address: {{ openshift.common.hostname }}:{{ openshift.master.etcd_port }}
- peerAddress: {{ openshift.common.hostname }}:7001
- peerServingInfo:
- bindAddress: {{ openshift.master.bind_addr }}:7001
- certFile: etcd.server.crt
- clientCA: ca.crt
- keyFile: etcd.server.key
- servingInfo:
- bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.etcd_port }}
- certFile: etcd.server.crt
- clientCA: ca.crt
- keyFile: etcd.server.key
- storageDirectory: {{ openshift.common.data_dir }}/openshift.local.etcd
- {% endif %}
- etcdStorageConfig:
- kubernetesStoragePrefix: kubernetes.io
- kubernetesStorageVersion: v1
- openShiftStoragePrefix: openshift.io
- openShiftStorageVersion: v1
- imageConfig:
- format: {{ openshift.master.registry_url }}
- latest: false
- {% if 'image_policy_config' in openshift.master %}
- imagePolicyConfig:{{ openshift.master.image_policy_config | to_padded_yaml(level=1) }}
- {% endif %}
- kind: MasterConfig
- kubeletClientInfo:
- {# TODO: allow user specified kubelet port #}
- ca: ca.crt
- certFile: master.kubelet-client.crt
- keyFile: master.kubelet-client.key
- port: 10250
- {% if openshift.master.embedded_kube | bool %}
- kubernetesMasterConfig:
- {% if not openshift.common.version_gte_3_1_or_1_1 | bool %}
- apiLevels:
- - v1beta3
- - v1
- {% endif %}
- admissionConfig:
- {% if 'kube_admission_plugin_order' in openshift.master %}
- pluginOrderOverride:{{ openshift.master.kube_admission_plugin_order | to_padded_yaml(level=3) }}
- {% endif %}
- {% if 'kube_admission_plugin_config' in openshift.master %}
- pluginConfig:{{ openshift.master.kube_admission_plugin_config | to_padded_yaml(level=3) }}
- {% endif %}
- apiServerArguments: {{ openshift.master.api_server_args | default(None) | to_padded_yaml( level=2 ) }}
- controllerArguments: {{ openshift.master.controller_args | default(None) | to_padded_yaml( level=2 ) }}
- masterCount: {{ openshift.master.master_count if openshift.master.cluster_method | default(None) == 'native' else 1 }}
- masterIP: {{ openshift.common.ip }}
- podEvictionTimeout: {{ openshift.master.pod_eviction_timeout | default("") }}
- proxyClientInfo:
- certFile: master.proxy-client.crt
- keyFile: master.proxy-client.key
- schedulerConfigFile: {{ openshift_master_scheduler_conf }}
- servicesNodePortRange: ""
- servicesSubnet: {{ openshift.common.portal_net }}
- staticNodeNames: {{ openshift_node_ips | default([], true) }}
- {% endif %}
- masterClients:
- {# TODO: allow user to set externalKubernetesKubeConfig #}
- {% if openshift.common.version_gte_3_3_or_1_3 | bool %}
- externalKubernetesClientConnectionOverrides:
- acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
- contentType: application/vnd.kubernetes.protobuf
- burst: 400
- ops: 200
- {% endif %}
- externalKubernetesKubeConfig: ""
- {% if openshift.common.version_gte_3_3_or_1_3 | bool %}
- openshiftLoopbackClientConnectionOverrides:
- acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
- contentType: application/vnd.kubernetes.protobuf
- burst: 600
- ops: 300
- {% endif %}
- openshiftLoopbackKubeConfig: openshift-master.kubeconfig
- masterPublicURL: {{ openshift.master.public_api_url }}
- networkConfig:
- clusterNetworkCIDR: {{ openshift.master.sdn_cluster_network_cidr }}
- hostSubnetLength: {{ openshift.master.sdn_host_subnet_length }}
- {% if openshift.common.use_openshift_sdn or openshift.common.use_nuage %}
- networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
- {% endif %}
- # serviceNetworkCIDR must match kubernetesMasterConfig.servicesSubnet
- serviceNetworkCIDR: {{ openshift.common.portal_net }}
- oauthConfig:
- {% if 'oauth_always_show_provider_selection' in openshift.master %}
- alwaysShowProviderSelection: {{ openshift.master.oauth_always_show_provider_selection }}
- {% endif %}
- {% if 'oauth_templates' in openshift.master %}
- templates:{{ openshift.master.oauth_templates | to_padded_yaml(level=2) }}
- {% endif %}
- assetPublicURL: {{ openshift.master.public_console_url }}/
- grantConfig:
- method: {{ openshift.master.oauth_grant_method }}
- identityProviders:
- {% for line in translated_identity_providers.splitlines() %}
- {{ line }}
- {% endfor %}
- masterCA: ca.crt
- masterPublicURL: {{ openshift.master.public_api_url }}
- masterURL: {{ openshift.master.api_url }}
- sessionConfig:
- sessionMaxAgeSeconds: {{ openshift.master.session_max_seconds }}
- sessionName: {{ openshift.master.session_name }}
- {% if openshift.master.session_auth_secrets is defined and openshift.master.session_encryption_secrets is defined %}
- sessionSecretsFile: {{ openshift.master.session_secrets_file }}
- {% endif %}
- tokenConfig:
- accessTokenMaxAgeSeconds: {{ openshift.master.access_token_max_seconds }}
- authorizeTokenMaxAgeSeconds: {{ openshift.master.auth_token_max_seconds }}
- pauseControllers: false
- policyConfig:
- bootstrapPolicyFile: {{ openshift_master_policy }}
- openshiftInfrastructureNamespace: openshift-infra
- openshiftSharedResourcesNamespace: openshift
- projectConfig:
- defaultNodeSelector: "{{ openshift.master.default_node_selector }}"
- projectRequestMessage: "{{ openshift.master.project_request_message }}"
- projectRequestTemplate: "{{ openshift.master.project_request_template }}"
- securityAllocator:
- mcsAllocatorRange: "{{ openshift.master.mcs_allocator_range }}"
- mcsLabelsPerProject: {{ openshift.master.mcs_labels_per_project }}
- uidAllocatorRange: "{{ openshift.master.uid_allocator_range }}"
- routingConfig:
- subdomain: "{{ openshift.master.default_subdomain | default("") }}"
- serviceAccountConfig:
- limitSecretReferences: false
- managedNames:
- - default
- - builder
- - deployer
- masterCA: ca.crt
- privateKeyFile: serviceaccounts.private.key
- publicKeyFiles:
- - serviceaccounts.public.key
- servingInfo:
- bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.api_port }}
- bindNetwork: tcp4
- certFile: master.server.crt
- clientCA: ca.crt
- keyFile: master.server.key
- maxRequestsInFlight: {{ openshift.master.max_requests_inflight }}
- requestTimeoutSeconds: 3600
- {% if openshift.master.named_certificates %}
- namedCertificates:
- {% for named_certificate in openshift.master.named_certificates %}
- - certFile: {{ named_certificate['certfile'] }}
- keyFile: {{ named_certificate['keyfile'] }}
- names:
- {% for name in named_certificate['names'] %}
- - "{{ name }}"
- {% endfor %}
- {% endfor %}
- {% endif %}
- volumeConfig:
- dynamicProvisioningEnabled: {{ openshift.master.dynamic_provisioning_enabled }}
|