Hi everyone, what is the difference if in a clusterrole apiGroups, i put value a . . .

komal minhas:
Hi everyone, what is the difference if in a clusterrole apiGroups, i put value as - apiGroups: [“”] and for another i put value as apiGroups: [“apps”], second question - in cronjobs - if the job is supposed to run every 5 minutes do i replace [* * * * * ] to [ */5 * * * * ] or [ 5 * * * *], what is the correct format? Thankyou!

Kshitij:
To answer your first q :

The apiGroups field in a ClusterRole resource determines which API groups the role has permissions for.
• If you set apiGroups: [""], the role will have permission for all API groups.
• If you set apiGroups: ["apps"], the role will only have permission for the apps API group.

Kshitij:
For second :

*/5 * * * * is the correct one.
5 * * * * this will only on the 5th minute of that hour.

Kshitij:
That means, at 6 PM for 5 min, then at 7 PM for 5 min. And so on. You get it.

komal minhas:
i get it, how about if i have a job that i want to run on 12th day of each month- [ * * 12 * * ] or [* * */12 * *]?

Nitish Patni:
That’s the format of cronjob
IMG_9446.jpg

Nitish Patni:
So * * 12 * * is correct

komal minhas:
Thankyou guys. Appreciate the help