Comments (6)
Either run as root:
securityContext:
runAsUser: 0
Or set the correct permissions on the mounted volume.
from git-sync.
This is basically using plain git over http or ssh... So there shouldn't be any difference to the hosted git repository. What method did you use and what was the error you encountered?
from git-sync.
Container git-syn in my pod:
spec:
containers:
- name: git-sync
image: gcr.io/google_containers/git-sync:v2.0.4
imagePullPolicy: Always
volumeMounts:
- name: git-sync
mountPath: /git
env:
- name: GIT_SYNC_REPO
value: https://bitbucket.org/app247/comercio-addons
- name: GIT_SYNC_DEST
value: git
- name: GIT_SYNC_USERNAME
value: my-username
- name: GIT_SYNC_PASSWORD
value: my-password
Volume git-sync is emptyDir: {}
In describe pod:
<invalid> <invalid> 1 kubelet, gke-cluster-1-default-pool-69a7e6ee-hrrd spec.containers{git-sync} Normal Created Created container with id 413962123e3f46243532d32d0ddbd007a8012bf68b61111d3d6bb596dd553a61
<invalid> <invalid> 1 kubelet, gke-cluster-1-default-pool-69a7e6ee-hrrd spec.containers{git-sync} Normal Started Started container with id 413962123e3f46243532d32d0ddbd007a8012bf68b61111d3d6bb596dd553a61
<invalid> <invalid> 2 kubelet, gke-cluster-1-default-pool-69a7e6ee-hrrd Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "git-sync" with CrashLoopBackOff: "Back-off 10s restarting failed container=git-sync pod=odoo-10-comercio-4113950861-k7sq2_app-247-1(0964ce24-9d4d-11e7-8712-42010af002d5)"
Thanks.
from git-sync.
What does the log output say? You can use kubectl logs -p to get the logs for the previous container.
from git-sync.
ERROR: can't create .netrc file: error setting up git credentials exit status 255: error: could not lock config file //.gitconfig: Permission denied
from git-sync.
It's done. Thanks a lot. Cheers.
from git-sync.
Related Issues (20)
- High vulnerability CVE-2023-6246 and CVE-2023-6779 HOT 1
- Issue with PYTHONPATH Resolution in git-sync 4.0.0 HOT 2
- v4 slack webhook HOT 6
- exechook behavior HOT 4
- Remediate 4.2.2 security vulnerabilities HOT 1
- Support GitHub App authentication HOT 7
- TODO: infra to make #878 work HOT 1
- Curious about real example raising race condition when using v3 HOT 1
- exechook working HOT 8
- TODO: shellcheck test_e2e.sh and test_git.sh HOT 5
- /bin/sh: ./build/test.sh: not found
- test_e2e.sh: use `local` for all variables defined inside functions HOT 2
- git-sync Multiple Vulnerabilities HOT 3
- how can put specific html folder from my git repo to nginx pod? HOT 2
- git-sync produced an intermediate file,the path of command is wrong HOT 1
- How to use GITSYNC_SYNC_ON_SIGNAL parameter through helm in k8s? HOT 2
- Issue with building Git Sync Container HOT 3
- Issue with Git-sync repo inside a repo, Nested repo for airflow files HOT 7
- On initial sync, all files are in deleted status HOT 5
- V4: GITSYNC_REF or V3: GIT_SYNC_BRANCH HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-sync.