This allows for more specificity when setting taint tolerations for workloads. Three new env variables are introduced: VKUBELET_TAINT_KEY (defaults to `virtual-kubelet.io/provider`) VKUBELET_TAINT_VALUE (defaults to provider name) VKUBELET_TAINT_EFFECT (defaults to `NoSchedule`) BREAKING CHANGES: - The default taint key of `azure.com/aci` is now `virtual-kubelet.io/provider`. - Specifying a custom taint key is now done via an environment variable rather than the `--taint` command line flag.
32 lines
616 B
YAML
32 lines
616 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: iis
|
|
spec:
|
|
containers:
|
|
- image: microsoft/iis:nanoserver
|
|
imagePullPolicy: Always
|
|
name: iis
|
|
resources:
|
|
requests:
|
|
memory: 3.5G
|
|
cpu: 2
|
|
limits:
|
|
memory: 3.5G
|
|
cpu: 2
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
protocol: TCP
|
|
- containerPort: 443
|
|
name: https
|
|
dnsPolicy: Default
|
|
nodeSelector:
|
|
kubernetes.io/role: agent
|
|
beta.kubernetes.io/os: windows
|
|
type: virtual-kubelet
|
|
automountServiceAccountToken: false
|
|
tolerations:
|
|
- key: virtual-kubelet.io/provider
|
|
operator: Exists
|