Logs get tailed after skaffold dev|run
No logs are tailed
apiVersion: skaffold/v2alpha3
kind: Config
metadata:
name: skaffold
profiles:
- name: demo
build:
artifacts:
- image: skaffold-demo
docker:
dockerfile: Dockerfile
tagPolicy:
envTemplate:
template: "{{.IMAGE_NAME}}:latest"
deploy:
kubectl:
manifests:
- demo.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: skaffold-demo
spec:
selector:
matchLabels:
app: skaffold-demo
replicas: 1
template:
metadata:
labels:
app: skaffold-demo
spec:
containers:
- name: skaffold-demo
image: registry.xxx/library/skaffold-demo
imagePullPolicy: Always
skaffold -p demo dev --status-check--status-check flagWARN[0000] image [skaffold-demo] is not used by the deployment
- deployment.apps/skaffold-demo configured
Waiting for deployments to stabilize
- development:deployment/skaffold-demo Waiting for deployment "skaffold-demo" rollout to finish: 1 old replicas are pending termination...
- development:deployment/skaffold-demo is ready.
Deployments stabilized in 3.092964101s
@tuananh170489 Is the container skaffold-demo a long lived container?
Can you give us the output of kubectl logs <podName> if possible?
Thanks
Tejal
@tuananh170489 Is the container
skaffold-demoa long lived container?
Can you give us the output ofkubectl logs <podName>if possible?Thanks
Tejal
Yep, the container still working, but it not stream log to the stdout ~.~
kubectl logs <Podname> still work properly
Log output:
```
Hello world!
Hello world!
I experiences similar issue where:
skaffold dev streamed the logs to my consoleI'm going to close this issue because it comes from the deployment.yaml not using the image that was built by Skaffold.
skaffold-demo imageregistry.xxx/library/skaffold-demo imageskaffold-demo image is never used.I'm going to close this issue because it comes from the
deployment.yamlnot using the image that was built by Skaffold.
- Skaffold builds a
skaffold-demoimage- The deployment.yaml should reference that image, not a
registry.xxx/library/skaffold-demoimage- At the end if the build, Skaffold complains that
skaffold-demoimage is never used.
thank for your reply
Most helpful comment
I experiences similar issue where:
skaffold devstreamed the logs to my console