apiVersion: v1
+kind: Service
+metadata:
+ name: ns-searchd
+spec:
+ clusterIP: 10.254.100.110
+ type: ClusterIP
+ ports:
+ - port: 6000
+ protocol: TCP
+ name: ns-searchd
+ selector:
+ app: ns-searchd
+---
+apiVersion: v1
kind: Pod
metadata:
- name: ns-searchd-dev
+ name: ns-searchd
labels:
app: ns-searchd
spec:
imagePullSecrets:
- name: regcred
volumes:
- - name: ns-searchd-dev-volume
+ - name: ns-searchd-volume
hostPath:
path: /home/hylom/mojolicious/src
containers:
- - name: ns-searchd-dev
+ - name: ns-searchd
image: sdtest.osdn.co.jp:5000/osdn/ns-searchd
volumeMounts:
- - name: ns-searchd-dev-volume
+ - name: ns-searchd-volume
mountPath: /var/newslash
ports:
- - containerPort: 3000
- tty: true
- stdin: true
- command: ["bash"]
- #command: ["python", "/var/newslash/ns_search/searchd.py"]
+ - containerPort: 6000
+ tty: false
+ stdin: false
+ command: ["python", "/var/newslash/ns_search/searchd.py"]