Hello All,
I am running the ansible playbook in operator-sdk from jenkins job.
I am giving certain inputs to jenkins job that triggers the reconciliation and after the controller-manager pod goes into "CrashLoopBackOff" state, but if we run this locally the controller-manager pod creates without any issues.
Moreover if i see the manager.yaml deployment file (config/manager/manager.yaml), the controller is not pulled from any repo, its says image: controller:latest
My question is how can i specify the controller image which should be pulled from a repo ?
How can i generate the image so that i can put this in repo and pull it ?
Any advice is really appreciated.
The following is the deployment yaml for controller manager.
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
labels:
control-plane: controller-manager
spec:
selector:
matchLabels:
control-plane: controller-manager
replicas: 1
template:
metadata:
labels:
control-plane: controller-manager
spec:
containers:
- name: manager
args:
- "--enable-leader-election"
- "--leader-election-id=ab-xx-yy-zz"
env:
- name: ANSIBLE_GATHERING
value: explicit
image: controller:latest
terminationGracePeriodSeconds: 10
Thanks & Regards,
Majid M A