RTF pulls container images from a remote private registry. A cron job keeps renewing the credentials required to pull the images. In some situations, you may not want to wait for new cron job to be triggered to refresh the credentials and want to manually trigger the cron to renew the credentials. This article explains how to achieve this.
> curl -s https://raw.githubusercontent.com/mulesoft-labs/rtf-utilities/master/scripts/refresh_creds.sh | bash
job.batch/refresh-creds-8a9228 created
job.batch/refresh-creds-8a9228 condition met
Job refresh-creds-8a9228 [completed]
Updating namespace "6c3c3e41-e5a1-4423-81bc-xxxxxx"
secret/awsecr-cred configured
Updating namespace "89c3f719-a117-4c66-9017-xxxxxx"
secret/awsecr-cred configured
Updating namespace "c62b4c29-3361-4436-a7e9-xxxxxx"
secret/awsecr-cred configured
Updating namespace "rtf"
secret/awsecr-cred configured
job.batch "refresh-creds-8a9228" deleted
Alternatively, you can copy the script from Github and run it on a controller node.
> chmod +x ./refresh_creds.sh > ./refresh_creds.sh
kubectl get cronjob registry-creds -n rtf -o yaml > registry-creds-bk.yaml kubectl edit cronjob/registry-creds -n rtf
- name: HTTP_PROXY valueFrom: secretKeyRef: key: HTTP_PROXY name: custom-properties optional: true - name: NO_PROXY valueFrom: secretKeyRef: key: HTTP_NO_PROXY name: custom-properties optional: true
- name: HTTP_PROXY valueFrom: secretKeyRef: key: HTTP_PROXY name: custom-properties optional: true - name: HTTPS_PROXY valueFrom: secretKeyRef: key: HTTP_PROXY name: custom-properties optional: true - name: NO_PROXY valueFrom: secretKeyRef: key: HTTP_NO_PROXY name: custom-properties optional: true
docker push leader.telekube.local:5000/rtf-upgrade
001116883

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.