title: Unable to create a new Kubanetes deployment using node 'kubernetes-client'
body: <pre><code>const k8s = require('kubernetes-client');
  const endpoint = 'https://' + IP;
  
  const ext = new k8s.Extensions({
    url: endpoint,
    version: 'v1beta1',
    insecureSkipTlsVerify: true,
    namespace,
    auth: {
        bearer: token,
    },
  });
  
  const body = {
  spec: {
      template: {
          spec: {
              metadata: [{
                  name,
                  image,
              }]
          }
      }
  }
  };
  
  ext.namespaces.deployments(name).put({body}, (err, response =&gt; { console.log(response); })
  </code></pre>
  
  <p>The above functions seem to authenticate with GET and PUSH, however I get the following error message when using POST.</p>
  
  <blockquote>
    <p>the server does not allow this method on the requested resource
    Blockquote</p>
  </blockquote>