पर एकाधिक कमांड पास करना मैं क्यूबेरनेट कॉन्फ़िगरेशन फ़ाइल के command
टैग में एक डॉकर कंटेनर में एकाधिक एंट्रीपॉइंट आदेश भेजना चाहता हूं।कुबर्नेट्स - कंटेनर
apiVersion: v1
kind: Pod
metadata:
name: hello-world
spec: # specification of the pod’s contents
restartPolicy: Never
containers:
- name: hello
image: "ubuntu:14.04"
command: ["command1 arg1 arg2 && command2 arg3 && command3 arg 4"]
लेकिन ऐसा लगता है कि यह काम नहीं करता है। कमांड टैग में एकाधिक कमांड भेजने का सही प्रारूप क्या है?
संभावित डुप्लिकेट [Kubernetes के साथ एक YAML फ़ाइल में एक से अधिक आदेशों स्थापित करने के लिए कैसे?] (http://stackoverflow.com/questions/33887194/how-to-set-multiple-commands-in-one- yaml-file-with-kubernetes) –