Thanks Brandon,
Now i am able to deploy but facing different issue .If i add volumes
in yaml file my entry point script is not picking and pods are not getting up .
If i remove the volumes content in yaml file pods are getting up without issue
. I am getting confused . can you help with this . Below is the yaml file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: psearch-servc
spec:
replicas: 2
template:
metadata:
labels:
component: powersearch
provider: kubernetes
spec:
containers:
- name: powersearch
image: 172.26.47.239:5000/tomcat:powersearch
ports:
- containerPort: 9000
volumeMounts:
- mountPath: /etc/micro/trunk/
name: power-logs-volume
env:
- name : VTHREE_F3DEV_APP_POD_SERVICE_CONTEXT_ROOT
value : "f3dev"
- name : SOLR_SERVC_CONTEXT_ROOT
value : "solr"
volumes:
- name: power-logs-volume
hostPath:
path: /logs/power-search-logs
[root@VM-K8S-DOCKER-1 centos]# kubectl get pods
NAME READY STATUS RESTARTS
AGE
psearch-servc-987683058-qpp30 0/1 CrashLoopBackOff 6
6m
psearch-servc-987683058-qtp0n 0/1 CrashLoopBackOff 6
6m
vthree-f3dev-app-pod-1585762450-kztvm 1/1 Running 0
1h
[root@VM-K8S-DOCKER-1 centos]# kubectl logs psearch-servc-987683058-qtp0n
/bin/bash: ./tomcat.sh: No such file or directory
[root@VM-K8S-DOCKER-1 centos]#
Please let me know if any further details required.Thanks in Advance
--
You received this message because you are subscribed to the Google Groups
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.