Sri:
Hi All, @Tej_Singh_Rana
Need some clarification regarding volumes-hostpath, I am expecting that container logs should be available at /var/log/webapp on host, I also have create the dir /var/log/webapp, but I still cannot see the logs on this location.
Here is my yams file
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: webapp
name: webapp
spec:
containers:
- image: kodekloud/event-simulator
name: webapp
volumeMounts:
- mountPath: /log
name: test-vol
volumes:
- name: test-vol
hostPath:
path: /var/log/webapp
type: DirectoryOrCreate