api_server.j2 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. apiVersion: extensions/v1beta1
  2. kind: DaemonSet
  3. metadata:
  4. labels:
  5. app: apiserver
  6. name: apiserver
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: apiserver
  11. updateStrategy:
  12. rollingUpdate:
  13. maxUnavailable: 1
  14. type: RollingUpdate
  15. template:
  16. metadata:
  17. labels:
  18. app: apiserver
  19. spec:
  20. serviceAccountName: service-catalog-apiserver
  21. nodeSelector:
  22. {% for key, value in node_selector.items() %}
  23. {{key}}: "{{value}}"
  24. {% endfor %}
  25. containers:
  26. - args:
  27. - apiserver
  28. - --storage-type
  29. - etcd
  30. - --secure-port
  31. - "6443"
  32. - --etcd-servers
  33. - {{ etcd_servers }}
  34. - --etcd-cafile
  35. - {{ etcd_cafile }}
  36. - --etcd-certfile
  37. - /etc/origin/master/master.etcd-client.crt
  38. - --etcd-keyfile
  39. - /etc/origin/master/master.etcd-client.key
  40. - -v
  41. - "10"
  42. - --cors-allowed-origins
  43. - {{ cors_allowed_origin }}
  44. - --admission-control
  45. - KubernetesNamespaceLifecycle,DefaultServicePlan,ServiceBindingsLifecycle,ServicePlanChangeValidator,BrokerAuthSarCheck
  46. - --feature-gates
  47. - OriginatingIdentity=true
  48. image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
  49. command: ["/usr/bin/service-catalog"]
  50. imagePullPolicy: Always
  51. name: apiserver
  52. ports:
  53. - containerPort: 6443
  54. protocol: TCP
  55. resources: {}
  56. terminationMessagePath: /dev/termination-log
  57. volumeMounts:
  58. - mountPath: /var/run/kubernetes-service-catalog
  59. name: apiserver-ssl
  60. readOnly: true
  61. - mountPath: /etc/origin/master
  62. name: etcd-host-cert
  63. readOnly: true
  64. dnsPolicy: ClusterFirst
  65. restartPolicy: Always
  66. securityContext: {}
  67. terminationGracePeriodSeconds: 30
  68. volumes:
  69. - name: apiserver-ssl
  70. secret:
  71. defaultMode: 420
  72. secretName: apiserver-ssl
  73. items:
  74. - key: tls.crt
  75. path: apiserver.crt
  76. - key: tls.key
  77. path: apiserver.key
  78. - hostPath:
  79. path: /etc/origin/master
  80. name: etcd-host-cert
  81. - emptyDir: {}
  82. name: data-dir