mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-22 00:54:00 +00:00
In support of the workload partitioning feature (openshift/enhancements#703), we need to add annotations to all management pods and namespaces so they can be properly identified and assigned to segregated management cores on clusters configured to do so. Signed-off-by: Ian Miller <imiller@redhat.com>
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: klusterlet
|
|
namespace: open-cluster-management
|
|
labels:
|
|
app: klusterlet
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: klusterlet
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
|
|
labels:
|
|
app: klusterlet
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 70
|
|
podAffinityTerm:
|
|
topologyKey: failure-domain.beta.kubernetes.io/zone
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- klusterlet
|
|
- weight: 30
|
|
podAffinityTerm:
|
|
topologyKey: kubernetes.io/hostname
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- klusterlet
|
|
serviceAccountName: klusterlet
|
|
containers:
|
|
- name: klusterlet
|
|
image: quay.io/open-cluster-management/registration-operator:latest
|
|
args:
|
|
- "/registration-operator"
|
|
- "klusterlet"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
scheme: HTTPS
|
|
port: 8443
|
|
initialDelaySeconds: 2
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
scheme: HTTPS
|
|
port: 8443
|
|
initialDelaySeconds: 2
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|