8bbb84af97
This adds stability to etcd and enables cleaner waiting by tiller during deployment of the Kubernetes apiserver and etcd. * Adds second auxiliary etcd process. * Enables "sequenced" for remaining ChartGroups. * Removes unused disks from test VMs. * Add readiness and liveness probes for kubernetes components Change-Id: I6f83bb912f76b0ec35503723b417ba45d69e39c5
92 lines
3.2 KiB
YAML
92 lines
3.2 KiB
YAML
{{/*
|
|
Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- $envAll := . }}
|
|
---
|
|
apiVersion: "extensions/v1beta1"
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: kubernetes-scheduler-anchor
|
|
spec:
|
|
{{ tuple $envAll "scheduler" | include "helm-toolkit.snippets.kubernetes_upgrades_daemonset" | indent 2 }}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
labels:
|
|
{{ tuple $envAll "kubernetes" "kubernetes-scheduler-anchor" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
hostNetwork: true
|
|
dnsPolicy: {{ .Values.anchor.dns_policy }}
|
|
nodeSelector:
|
|
{{ .Values.labels.scheduler.node_selector_key }}: {{ .Values.labels.scheduler.node_selector_value }}
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/master
|
|
effect: NoSchedule
|
|
- key: CriticalAddonsOnly
|
|
operator: Exists
|
|
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.scheduler.timeout }}
|
|
containers:
|
|
- name: anchor
|
|
image: {{ .Values.images.tags.anchor }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
{{ tuple $envAll $envAll.Values.pod.resources.anchor_daemonset | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
|
command:
|
|
- /tmp/bin/anchor
|
|
lifecycle:
|
|
preStop:
|
|
exec:
|
|
command:
|
|
- /tmp/bin/pre_stop
|
|
|
|
readinessProbe:
|
|
httpGet:
|
|
host: 127.0.0.1
|
|
path: /healthz
|
|
port: {{ .Values.network.kubernetes_scheduler.port }}
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
timeoutSeconds: 5
|
|
|
|
volumeMounts:
|
|
- name: bin
|
|
mountPath: /tmp/bin
|
|
- name: etc
|
|
mountPath: /configmap
|
|
- name: host
|
|
mountPath: /host
|
|
- name: secret
|
|
mountPath: /secret
|
|
terminationGracePeriodSeconds: {{ .Values.anchor.termination_grace_period }}
|
|
volumes:
|
|
- name: bin
|
|
configMap:
|
|
name: kubernetes-scheduler-bin
|
|
defaultMode: 0555
|
|
- name: etc
|
|
configMap:
|
|
name: kubernetes-scheduler-etc
|
|
defaultMode: 0444
|
|
- name: host
|
|
hostPath:
|
|
path: /
|
|
- name: secret
|
|
secret:
|
|
secretName: kubernetes-scheduler
|
|
defaultMode: 0444
|