Skip to main content

kubeconfigs

Creates, updates, deletes, gets or lists a kubeconfigs resource.

Overview​

Namekubeconfigs
TypeResource
Idoci.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:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertclusterId, regionopc-request-idCreate 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.

NameDatatypeDescription
clusterIdstringThe OCID of the cluster.
regionstringOCI 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-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

INSERT examples​

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 }}'
;