adamant-kite-43734
07/07/2023, 8:32 AMbroad-dream-81849
07/07/2023, 8:34 AMbroad-dream-81849
07/07/2023, 8:34 AMmammoth-scooter-66898
07/07/2023, 8:34 AMmammoth-scooter-66898
07/07/2023, 8:35 AMbroad-dream-81849
07/07/2023, 8:35 AMbroad-dream-81849
07/07/2023, 2:35 PMapiVersion: <http://gitjob.cattle.io/v1|gitjob.cattle.io/v1>
kind: GitJob
metadata:
# The name of the GitJob, doesn't need to match the project.
name: samplepush
spec:
syncInterval: 15
git:
# The git repo and branch to track.
repo: <https://github.com/epinio/example-12factor>
branch: main
jobSpec:
template:
spec:
# This should match what we created in the last step
serviceAccountName: epinio-gitjob
restartPolicy: "Never"
containers:
# This version should match your epinio deployment
- image: "<http://ghcr.io/epinio/epinio-server:v1.8.1|ghcr.io/epinio/epinio-server:v1.8.1>"
name: epinio-push
volumeMounts:
- name: settings
mountPath: "/settings/"
readOnly: true
- name: tmp
mountPath: /tmp
readOnly: false
env:
- name: EPINIO_SETTINGS
value: "/settings/settings.yaml"
command:
- /epinio
args:
- push
- "--name"
# This is the name of the app to push
- test12factor
workingDir: /workspace/source
volumes:
- name: settings
secret:
secretName: epinio-creds
- name: tmp
emptyDir: {}
mammoth-scooter-66898
07/07/2023, 2:39 PMbroad-dream-81849
07/07/2023, 2:39 PMEPINIO_CONFIG
env var should be EPINIO_SETTINGS
• the args of the container were missing the --name
flag:
args:
- push
- "--name"
# This is the name of the app to push
- test12factor
• there is the need for a mounted /tmp
volume, so also you need the volumes
and volumeMounts
:
volumeMounts:
- name: tmp
mountPath: /tmp
readOnly: false
volumes:
- name: tmp
emptyDir: {}
and as you said the image is an old one, and should be <http://ghcr.io/epinio/epinio-server:v1.8.1|ghcr.io/epinio/epinio-server:v1.8.1>
broad-dream-81849
07/07/2023, 2:39 PMbroad-dream-81849
07/07/2023, 2:41 PMbroad-dream-81849
07/07/2023, 2:41 PMmammoth-scooter-66898
07/07/2023, 2:42 PM