Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active January 18, 2022 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vfarcic/c9f0b67b1f3c77c08b05eaa3d1ccfc7a to your computer and use it in GitHub Desktop.
Save vfarcic/c9f0b67b1f3c77c08b05eaa3d1ccfc7a to your computer and use it in GitHub Desktop.
# Links to gists for creating a cluster with jx
# gke-jx.sh: https://gist.github.com/86e10c8771582c4b6a5249e9c513cd18
# eks-jx.sh: https://gist.github.com/dfaf2b91819c0618faf030e6ac536eac
# aks-jx.sh: https://gist.github.com/6e01717c398a5d034ebe05b195514060
# install.sh: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233
open "https://github.com/vfarcic/go-demo-6"
GH_USER=[...]
git clone \
https://github.com/$GH_USER/go-demo-6.git
cd go-demo-6
git checkout orig
git merge -s ours master --no-edit
git checkout master
git merge orig
rm -rf charts
git push
jx repo --batch-mode
ls -1
jx import --batch-mode
ls -1
jx get activities \
--filter go-demo-6 \
--watch
STAGING_ADDR=[...]
curl "$STAGING_ADDR/demo/hello"
kubectl --namespace jx-staging logs \
-l app=jx-go-demo-6
echo "dependencies:
- name: mongodb
alias: go-demo-6-db
version: 5.3.0
repository: https://kubernetes-charts.storage.googleapis.com
condition: db.enabled
" | tee charts/go-demo-6/requirements.yaml
echo "go-demo-6-db:
replicaSet:
enabled: true
" | tee -a charts/go-demo-6/values.yaml
git add .
git commit \
--message "Added dependencies"
git push
jx get activity -f go-demo-6 -w
kubectl --namespace jx-staging get pods
kubectl --namespace jx-staging \
describe pod \
-l app=jx-go-demo-6
git add .
git commit \
--message "Added dependencies"
git push
jx get activity -f go-demo-6 -w
kubectl --namespace jx-staging get pods
curl "$STAGING_ADDR/demo/hello"
hub delete -y \
$GH_USER/environment-jx-rocks-staging
hub delete -y \
$GH_USER/environment-jx-rocks-production
rm -rf ~/.jx/environments/$GH_USER/environment-jx-rocks-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment