GoogleContainerTools / GoogleContainerTools/skaffold
dev doesn't seem to tail logs or forward ports
- Dominant language
- Go
- Stars
- 15.9k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
truncated postgres logs
```
> kubectl logs postgres # ~
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
```
how I've been starting (killing with ctrl+c)
```
> skaffold dev # ppm -> 75-database ! ?
Listing files to watch...
Generating tags...
Checking cache...
Tags used in deployment:
Starting deploy...
- pod/postgres created
Waiting for deployments to stabilize...
Deployments stabilized in 25.357659ms
Press Ctrl+C to exit
Watching for changes...
^CCleaning up...
- pod "postgres" deleted
```
```
> skaffold diagnose # ppm -> 75-database ! ?
Skaffold version: ad9c4899cf485f6931cb9de2ac3419b83081f73d
Configuration version: skaffold/v2beta10
Number of artifacts: 0
Configuration
```
```yml
apiVersion: skaffold/v2beta10
kind: Config
metadata:
name: ppm
build:
tagPolicy:
gitCommit: {}
local:
concurrency: 1
deploy:
kubectl:
manifests:
- k8s/*.yaml
logs:
prefix: container
```
the actual pod
```yml
apiVersion: v1
kind: Pod
metadata:
name: postgres
spec:
containers:
- name: postgres
image: postgres:latest
ports:
- containerPort: 5432
name: postgres
env:
- name: POSTGRES_PASSWORD
value: UseSecrets
```
the port isn't forwarded
```
> telnet localhost 5432 # ppm -> 75-database ! ?
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
```
```
> skaffold version # ppm -> 75-database ! ? RC=1
v1.17.0
> docker --version # ppm -> 75-database ! ?
Docker version 19.03.13, build 4484c46d9d
> uname -a # ppm -> 75-database ! ?
Darwin Calebs-MBP 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
```
didn't work setting these through `skaffold run` or setting the env vars either. this seems to work for port forwarding though
```
> kubectl port-forward postgres 5432:5432 # ppm -> 75-database ! ? RC=1
Forwarding from 127.0.0.1:5432 -> 5432
Forwarding from [::1]:5432 -> 5432
Handling connection for 5432
```
Contributor guide
Assessment
This issue has not been assessed yet.