We can achieve this with the help of adding the below sidecar section inside the halyard configuration file under the deploymentEnvironment.
sidecars:
spin-clouddriver-caching:
- name: k8s-config-sync
dockerImage: quay.io/konikris/k8s-decoder:git-k8s
command: ["sh", "-c"]
args: ["while true; do sh /tmp/script/k8config-sync.sh; sleep 60s; done"]
configMapVolumeMounts:
- configMapName: k8config-sync
mountPath: /tmp/script
mountPath: /opsmx