api_server.j2 2.3 KB

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