master.yaml.v1.j2 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. apiVersion: v1
  2. assetConfig:
  3. logoutURL: ""
  4. masterPublicURL: {{ openshift.master.public_api_url }}
  5. publicURL: {{ openshift.master.public_console_url }}/
  6. servingInfo:
  7. bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.console_port }}
  8. certFile: master.server.crt
  9. clientCA: ""
  10. keyFile: master.server.key
  11. corsAllowedOrigins:
  12. {# TODO: add support for user specified corsAllowedOrigins #}
  13. {% for origin in ['127.0.0.1', 'localhost', openshift.common.hostname, openshift.common.ip, openshift.common.public_hostname, openshift.common.public_ip] %}
  14. - {{ origin }}
  15. {% endfor %}
  16. {% if openshift.master.embedded_dns %}
  17. dnsConfig:
  18. bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.dns_port }}
  19. {% endif %}
  20. etcdClientInfo:
  21. ca: ca.crt
  22. certFile: master.etcd-client.crt
  23. keyFile: master.etcd-client.key
  24. urls:
  25. {% for etcd_url in openshift.master.etcd_urls %}
  26. - {{ etcd_url }}
  27. {% endfor %}
  28. {% if openshift.master.embedded_etcd %}
  29. etcdConfig:
  30. address: {{ openshift.common.hostname }}:{{ openshift.master.etcd_port }}
  31. peerAddress: {{ openshift.common.hostname }}:7001
  32. peerServingInfo:
  33. bindAddress: {{ openshift.master.bind_addr }}:7001
  34. certFile: etcd.server.crt
  35. clientCA: ca.crt
  36. keyFile: etcd.server.key
  37. servingInfo:
  38. bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.etcd_port }}
  39. certFile: etcd.server.crt
  40. clientCA: ca.crt
  41. keyFile: etcd.server.key
  42. storageDirectory: {{ openshift_data_dir }}/openshift.local.etcd
  43. {% endif %}
  44. etcdStorageConfig:
  45. kubernetesStoragePrefix: kubernetes.io
  46. kubernetesStorageVersion: v1beta3
  47. kubernetesStoragePrefix: kubernetes.io
  48. openShiftStorageVersion: v1beta3
  49. imageConfig:
  50. format: {{ openshift.master.registry_url }}
  51. latest: false
  52. kind: MasterConfig
  53. kubeletClientInfo:
  54. {# TODO: allow user specified kubelet port #}
  55. ca: ca.crt
  56. certFile: master.kubelet-client.crt
  57. keyFile: master.kubelet-client.key
  58. port: 10250
  59. {% if openshift.master.embedded_kube %}
  60. kubernetesMasterConfig:
  61. {# TODO: support overriding masterCount #}
  62. masterCount: 1
  63. masterIP: ""
  64. schedulerConfigFile: {{ openshift_master_scheduler_conf }}
  65. servicesSubnet: {{ openshift.master.portal_net }}
  66. staticNodeNames: {{ openshift_node_ips | default([], true) }}
  67. {% endif %}
  68. masterClients:
  69. {# TODO: allow user to set externalKubernetesKubeConfig #}
  70. deployerKubeConfig: openshift-deployer.kubeconfig
  71. externalKubernetesKubeConfig: ""
  72. openshiftLoopbackKubeConfig: openshift-client.kubeconfig
  73. masterPublicURL: {{ openshift.master.public_api_url }}
  74. networkConfig:
  75. clusterNetworkCIDR: {{ openshift.master.sdn_cluster_network_cidr }}
  76. hostSubnetLength: {{ openshift.master.sdn_host_subnet_length }}
  77. networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
  78. {% include 'v1_partials/oauthConfig.j2' %}
  79. policyConfig:
  80. bootstrapPolicyFile: {{ openshift_master_policy }}
  81. openshiftSharedResourcesNamespace: openshift
  82. {# TODO: Allow users to override projectConfig items #}
  83. projectConfig:
  84. defaultNodeSelector: ""
  85. projectRequestMessage: ""
  86. projectRequestTemplate: ""
  87. serviceAccountConfig:
  88. managedNames:
  89. - default
  90. - builder
  91. privateKeyFile: serviceaccounts.private.key
  92. publicKeyFiles:
  93. - serviceaccounts.public.key
  94. servingInfo:
  95. bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.api_port }}
  96. certFile: master.server.crt
  97. clientCA: ca.crt
  98. keyFile: master.server.key