Skip to content

Commit

Permalink
Update the k8s configure
Browse files Browse the repository at this point in the history
  • Loading branch information
i0gan committed Aug 15, 2024
1 parent a6c5047 commit e5df3b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docker/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [[ $version == "" ]];then
version="1.2"
fi

dockerfile=./docker/src_dep
dockerfile=./docker/src
is_build_third_party=0
is_build_sqkctl=0
src_image_tag=pwnsky/squick_src:$version
Expand All @@ -24,6 +24,7 @@ check_err
echo "Export binary files"
docker run -d --name $build_container $src_image_tag
check_err
mkdir -p ./cache
rm -rf ./cache/docker_deploy
docker cp $build_container:/squick/deploy ./cache/docker_deploy
check_err
Expand All @@ -39,7 +40,7 @@ docker build . -t $bin_image_tag -f ./docker/release
check_err

echo "Exporting the image"
docker save -o ../cache/squick_$version.tar pwnsky/squick:$version
docker save -o ./cache/squick_$version.tar pwnsky/squick:$version
check_err

echo "Build image ok"
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/tmpl/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
command: ["/bin/bash", "-c"]
args:
- >
/squick/script/squick.sh type=proxy id=500${HOSTNAME##*-} area=0 ip=$(POD_IP) port=10501 ws_port=10502 master_ip=squick-master-0 master_port=10001 logshow=0
/squick/script/squick.sh type=proxy id=500${HOSTNAME##*-} area=0 ip=$(POD_IP) port=10501 ws_port=10502 master_ip=svc-squick-master.default.svc.cluster.local master_port=10001 logshow=0
env:
- name: POD_NAME
valueFrom:
Expand Down

0 comments on commit e5df3b7

Please sign in to comment.