nomad plan --help



  • https://www.nomadproject.io/docs/commands/plan.html

    Usage: nomad plan [options] <path>
    
      Plan invokes a dry-run of the scheduler to determine the effects of submitting
      either a new or updated version of a job. The plan will not result in any
      changes to the cluster but gives insight into whether the job could be run
      successfully and how it would affect existing allocations.
    
      If the supplied path is "-", the jobfile is read from stdin. Otherwise
      it is read from the file at the supplied path or downloaded and
      read from URL specified.
    
      A job modify index is returned with the plan. This value can be used when
      submitting the job using "nomad run -check-index", which will check that the job
      was not modified between the plan and run command before invoking the
      scheduler. This ensures the job has not been modified since the plan.
    
      A structured diff between the local and remote job is displayed to
      give insight into what the scheduler will attempt to do and why.
    
      If the job has specified the region, the -region flag and NOMAD_REGION
      environment variable are overridden and the job's region is used.
    
      Plan will return one of the following exit codes:
        * 0: No allocations created or destroyed.
        * 1: Allocations created or destroyed.
        * 255: Error determining plan results.
    
    General Options:
    
      -address=<addr>
        The address of the Nomad server.
        Overrides the NOMAD_ADDR environment variable if set.
        Default = http://127.0.0.1:4646
    
      -region=<region>
        The region of the Nomad servers to forward commands to.
        Overrides the NOMAD_REGION environment variable if set.
        Defaults to the Agent's local region.
      
      -no-color
        Disables colored command output.
    
      -ca-cert=<path>           
        Path to a PEM encoded CA cert file to use to verify the 
        Nomad server SSL certificate.  Overrides the NOMAD_CACERT 
        environment variable if set.
    
      -ca-path=<path>           
        Path to a directory of PEM encoded CA cert files to verify 
        the Nomad server SSL certificate. If both -ca-cert and 
        -ca-path are specified, -ca-cert is used. Overrides the 
        NOMAD_CAPATH environment variable if set.
    
      -client-cert=<path>       
        Path to a PEM encoded client certificate for TLS authentication 
        to the Nomad server. Must also specify -client-key. Overrides 
        the NOMAD_CLIENT_CERT environment variable if set.
    
      -client-key=<path>        
        Path to an unencrypted PEM encoded private key matching the 
        client certificate from -client-cert. Overrides the 
        NOMAD_CLIENT_KEY environment variable if set.
    
      -tls-skip-verify        
        Do not verify TLS certificate. This is highly not recommended. Verification
        will also be skipped if NOMAD_SKIP_VERIFY is set.
    
    Plan Options:
    
      -diff
        Determines whether the diff between the remote job and planned job is shown.
        Defaults to true.
    
      -verbose
        Increase diff verbosity.
    

Log in to reply
 

© Lightnetics 2024