K
Q

kubernetes deployment run command

11/24/2018

How can I run command line arguments in Kubernetes deployments?

I trird like this, but the deployment failed

   spec:
        containers:
          - args:
              - /bin/sh
              - '-c'
              - touch /tmp/healthy; touch /tmp/liveness
            env:
-- Subit Das
kubernetes

Similar Questions

Kubernetes jobs with heterogeneous pods
Error pushing kaniko build image to azure container registry from jenkins groovy pipeline
How istio send tracing spans to jaeger?
Spring cloud data flow on kubernetes doesnt show the streams section
kubectl reformats "script" block after edit is applied
Kubernetes Webhook - Multiple hubs defined for group-kind
Pass configMap as argument in a Kubernetes deployment
K8S - how to separate Pod definition from StatefulSet definition
Additional property is not allowed in Helm chart
Kubernete NAT pod IP on Windows Nodes
get name of the pod consuming highest cpu using kubectl command

1 Answer

11/24/2018

You can run command line arguments in Kubernetes deployments using "kubectl".

-- akhilesh
Source: StackOverflow