Comments (6)
helm delete didn't remove PVC. It worked after cleanup. Then, I ran into the following error.
error: cannot attach to *v1.Service: invalid service 'mytest': Service is defined without a selector
from helm-charts.
Helm does not remove pvc's
, that is part of Helm:
We ran into this ourselves, so we documented this here:
https://github.com/timescale/timescaledb-kubernetes/blob/master/charts/timescaledb-single/admin-guide.md#cleanup
from helm-charts.
With regards to the Service is defined without a selector
message, that is correct, the master service governed by Patroni does not have a selector.
- What sequence of steps did you take to run into this error message?
- What version of Helm are you using
- What version of Kubernetes are you using?
- What is the output of:
kubectl get all,ep,service -l cluster-name=<deployment name>
from helm-charts.
I was trying to setup port-forward so that I can access timescalesdb from outside kubernetes for development.
I did git pull today, redeployed timescaledb-single chart.
❯❯❯ kubectl get all,ep,service -l cluster-name=ktsdb -n ktsdb
NAME READY STATUS RESTARTS AGE
pod/ktsdb-timescaledb-0 1/1 Running 0 22m
pod/ktsdb-timescaledb-1 1/1 Running 0 21m
pod/ktsdb-timescaledb-2 1/1 Running 0 20m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/ktsdb LoadBalancer 10.103.171.166 <pending> 5432:31316/TCP 22m
service/ktsdb-config ClusterIP None <none> 8008/TCP 22m
service/ktsdb-replica ClusterIP 10.96.21.55 <none> 5432/TCP 22m
NAME READY AGE
statefulset.apps/ktsdb-timescaledb 3/3 22m
NAME ENDPOINTS AGE
endpoints/ktsdb 172.17.0.10:5432 22m
endpoints/ktsdb-config 172.17.0.10:8008,172.17.0.15:8008,172.17.0.18:8008 22m
endpoints/ktsdb-replica 172.17.0.15:5432,172.17.0.18:5432 22m
I am using Helm v3, deploy on minikube 1.3.1. The followings are the step taken. I've got a different error this time.
~/w/t/charts ❯❯❯ kubectl create namespace ktsdb
~/w/t/charts ❮❮❮ helm install ktsdb timescaledb-single -n ktsdb
~/w/t/charts ❯❯❯ kubectl port-forward service/ktsdb 5432:5432 -n ktsdb
error: Pod 'ktsdb-timescaledb-0' does not have a named port 'postgresql'
from helm-charts.
Port forwarding to the service for the primary instance is not going to work directly with kubectl port-forward
, as it is designed to work without a selector.
More detail about this limitation of kubectl port-forward
can be found here:
This comment shows a possible workaround:
from helm-charts.
@feikesteenbergen got it. It is as design. I just need to port forward for dev/debug purpose, I end up with port-forward port from pod directly.
kubectl port-forward pod/bw-timescaledb-0 5432:5432 -n test
from helm-charts.
Related Issues (20)
- `job-update-patroni` fails if http://{{ template "clusterName" . }}-config:8008/config is not ready, but it exits with success.
- Operation not permitted on `/var/lib/postgresql/pgdata` while using with Amazon EFS HOT 2
- Error in `restore_or_initdb.sh` while restoring a backup
- logs a full of failed to start a background worker HOT 9
- Add support for additional annotations in the statefulset object to support cert-manager/reloader integration
- Add pgbouncer_exporter to Statefulset HOT 1
- Implement option to specify an existing persistent volume in the PVC template HOT 2
- timescaledb ha : Password does not match for user "standby" HOT 3
- Cluster node restarted unexpectedly HOT 2
- Error: INSTALLATION FAILED: repo charts not found HOT 1
- pgbackrest info missing stanza path when BOOTSTRAP_FROM_BACKUP=1 HOT 1
- postgresql core dump crashes timescale database
- pgbackrest_restore.sh exits despite backup being enabled
- Unrecognized option '--comand=/etc/timescaledb/scripts/restore_or_initdb.sh' HOT 2
- timescaledb-single: How to restore from specific backup HOT 1
- timescaledb-single without persistent storage HOT 1
- Helm Chart support HOT 2
- [Bug]: Error - 128 kB is outside the valid range for parameter "maintenance_work_mem HOT 1
- Add CA to allow custom Certificates HOT 3
- Chart requires all images to be installed form one repo, which does not allow for custom images
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 helm-charts.