kubeconfigs
Creates, updates, deletes, gets or lists a kubeconfigs resource.
Overview​
| Name | kubeconfigs |
| Type | Resource |
| Id | oci.container_engine.kubeconfigs |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | insert | clusterId, region | opc-request-id | Create the Kubeconfig YAML for a cluster. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
clusterId | string | The OCID of the cluster. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
INSERT examples​
- create
- Manifest
Create the Kubeconfig YAML for a cluster.
INSERT INTO oci.container_engine.kubeconfigs (
endpoint,
expiration,
tokenVersion,
clusterId,
region,
opc-request-id
)
SELECT
'{{ endpoint }}',
{{ expiration }},
'{{ tokenVersion }}',
'{{ clusterId }}',
'{{ region }}',
'{{ opc-request-id }}'
;
# Description fields are for documentation purposes
- name: kubeconfigs
props:
- name: clusterId
value: "{{ clusterId }}"
description: Required parameter for the kubeconfigs resource.
- name: region
value: "{{ region }}"
description: Required parameter for the kubeconfigs resource.
- name: endpoint
value: "{{ endpoint }}"
description: |
The endpoint to target. A cluster may have multiple endpoints exposed but the kubeconfig can only target one at a time.
valid_values: ['LEGACY_KUBERNETES', 'PUBLIC_ENDPOINT', 'PRIVATE_ENDPOINT', 'VCN_HOSTNAME']
- name: expiration
value: {{ expiration }}
description: |
Deprecated. This field is no longer used.
- name: tokenVersion
value: "{{ tokenVersion }}"
description: |
The version of the kubeconfig token. Supported value 2.0.0
default: 2.0.0
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.