master.yaml.v1.j2 3.7 KB

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