File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
Resources/k8s/kustomize/base/deployments Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,7 @@ docker-compose*
2424/* .js
2525.env
2626* pycache *
27- target
27+ target
28+ data /v2 /cries
29+ data /v2 /csv
30+ data /v2 /sprites
Original file line number Diff line number Diff line change 2323 echo waiting for database;
2424 sleep 2;
2525 done;
26+ - name : data-download
27+ image : alpine:3.21.2
28+ command : ['sh', '-c']
29+ args :
30+ - apk add --update git &&
31+ git clone --depth=1 --single-branch --branch=master --recurse-submodules --shallow-submodules https://github.com/PokeAPI/pokeapi.git &&
32+ mv /code/pokeapi/data/v2/cries/* /tmp/cries/ &&
33+ mv /code/pokeapi/data/v2/csv/* /tmp/csv/ &&
34+ mv /code/pokeapi/data/v2/sprites/* /tmp/sprites/
35+ workingDir : /code
36+ volumeMounts :
37+ - mountPath : /tmp/cries
38+ name : cries-data-share
39+ - mountPath : /tmp/csv
40+ name : csv-data-share
41+ - mountPath : /tmp/sprites
42+ name : sprites-data-share
2643 containers :
2744 - name : pokeapi
2845 image : pokeapi/pokeapi:master
5168 envFrom :
5269 - configMapRef :
5370 name : pokeapi-configmap
71+ volumeMounts :
72+ - mountPath : /code/data/v2/cries
73+ name : cries-data-share
74+ - mountPath : /code/data/v2/csv
75+ name : csv-data-share
76+ - mountPath : /code/data/v2/sprites
77+ name : sprites-data-share
5478 resources : {}
5579 readinessProbe :
5680 periodSeconds : 5
6488 httpGet :
6589 path : /api/v2/
6690 port : 8080
91+ volumes :
92+ - name : cries-data-share
93+ emptyDir : {}
94+ - name : csv-data-share
95+ emptyDir : {}
96+ - name : sprites-data-share
97+ emptyDir : {}
You can’t perform that action at this time.
0 commit comments