mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-07-06 03:39:42 +00:00
Add ability to provide annotations to the jobs.
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
labels:
|
||||
control-plane: cm-raczylo-com
|
||||
control-plane: sa
|
||||
app.kubernetes.io/name: kubernetes-images-sync-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: system
|
||||
@@ -10,23 +10,23 @@ metadata:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cm-raczylo-com
|
||||
name: sa
|
||||
namespace: system
|
||||
labels:
|
||||
control-plane: cm-raczylo-com
|
||||
control-plane: sa
|
||||
app.kubernetes.io/name: kubernetes-images-sync-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
control-plane: cm-raczylo-com
|
||||
control-plane: sa
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: manager
|
||||
labels:
|
||||
control-plane: cm-raczylo-com
|
||||
control-plane: sa
|
||||
spec:
|
||||
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
|
||||
# according to the platforms which are supported by your solution.
|
||||
@@ -63,6 +63,11 @@ spec:
|
||||
args:
|
||||
- --leader-elect
|
||||
- --health-probe-bind-address=:8081
|
||||
env:
|
||||
- name: POD_SERVICE_ACCOUNT
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
image: controller:latest
|
||||
name: manager
|
||||
securityContext:
|
||||
@@ -91,5 +96,5 @@ spec:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 64Mi
|
||||
serviceAccountName: cm-raczylo-com
|
||||
serviceAccountName: sa
|
||||
terminationGracePeriodSeconds: 10
|
||||
|
||||
Reference in New Issue
Block a user