Deploys Kubernetes configuration using kubectl.
url
: Required. URL of Kubernetes API Server.username
: Required. Username for accessing to API Server.password
: Required. Password for accessing to API Server.namespace
: Required. Namespace name which should be used.skip_tls_verify
: Optional. If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Default:false
.cert_data
: Optional. Client certificate for TLS. Default: empty.key_data
: Optional. Client certificate key for TLS. Default: empty.ca_data
: Optional. Certificate authority. Default: empty.
Apply a configuration YML (or JSON) file to a resource in Kubernetes API Server with using kubectl apply.
Also it checks that deployment has been processed successfully.
spec_path
: Required. Path to configuration file.
-
Define a resource type:
resource_types: - name: k8s-resource type: docker-image source: repository: StartupMakers/k8s-resource
-
Define a resource using this resource type:
resources: - name: my-cluster type: k8s-resource source: url: 192.168.0.1:3000/k8s-resource namespace: dev-space
-
Push configuration to your Kubernetes API Server:
- put: my-cluster params: spec_path: my-pod-spec.yml