Docker
docker build -f gcd-service/Dockerfile -t quay.io/tamarakaufler/gcd-service:$(GCD_IMAGE_TAG) .
docker login quay.io -u tamarakaufler -p $QUAY_PASS
docker push quay.io/tamarakaufler/gcd-service:$GCD_IMAGE_TAG
docker ps | grep "postgres" | awk '{print $1}' | xargs docker stop
docker ps | grep "-service" | awk '{print $1}' | xargs docker rm -f
docker run --name=decrypt-incremental --rm -v $PWD:/data quay.io/tamarakaufler/decrypt-incremental:v1alpha1 -f=/data/test4.txt
kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c sidecar
Kubernetes
kubectl delete pods $(kubectl get pods |grep 'fe-deployment'|awk '{print $1;}')
kubectl port-forward $(kubectl get pods --selector=app=kube-prometheus-grafana -n monitoring --output=jsonpath="{.items..metadata.name}") -n monitoring 3000
kubectl get nodes -o json | grep name
No comments:
Post a Comment
Note: only a member of this blog may post a comment.