Update kubernetes provider
This commit is contained in:
parent
d37bf808df
commit
ecda27e05a
|
@ -16,10 +16,10 @@ Use the navigation to the left to read about the available resources.
|
|||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
provider "kubernetes" {
|
||||
config_context_auth_info = "ops"
|
||||
config_context_cluster = "mycluster"
|
||||
config_context_cluster = "mycluster"
|
||||
}
|
||||
|
||||
resource "kubernetes_namespace" "example" {
|
||||
|
@ -58,13 +58,14 @@ Read [more about `kubectl` in the official docs](https://kubernetes.io/docs/user
|
|||
|
||||
The other way is **statically** define all the credentials:
|
||||
|
||||
```
|
||||
```hcl
|
||||
provider "kubernetes" {
|
||||
host = "https://104.196.242.174"
|
||||
host = "https://104.196.242.174"
|
||||
username = "ClusterMaster"
|
||||
password = "MindTheGap"
|
||||
client_certificate = "${file("~/.kube/client-cert.pem")}"
|
||||
client_key = "${file("~/.kube/client-key.pem")}"
|
||||
|
||||
client_certificate = "${file("~/.kube/client-cert.pem")}"
|
||||
client_key = "${file("~/.kube/client-key.pem")}"
|
||||
cluster_ca_certificate = "${file("~/.kube/cluster-ca-cert.pem")}"
|
||||
}
|
||||
```
|
||||
|
|
|
@ -13,14 +13,15 @@ Config Map can be used to store fine-grained information like individual propert
|
|||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "kubernetes_config_map" "example" {
|
||||
metadata {
|
||||
name = "my-config"
|
||||
name = "my-config"
|
||||
}
|
||||
|
||||
data {
|
||||
api_host = "myhost:443"
|
||||
db_host = "dbhost:5432"
|
||||
api_host = "myhost:443"
|
||||
db_host = "dbhost:5432"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -13,15 +13,17 @@ Read more about namespaces at https://kubernetes.io/docs/user-guide/namespaces/
|
|||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "kubernetes_namespace" "example" {
|
||||
metadata {
|
||||
annotations {
|
||||
name = "example-annotation"
|
||||
}
|
||||
|
||||
labels {
|
||||
mylabel = "label-value"
|
||||
}
|
||||
|
||||
name = "TerraformExampleNamespace"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ The resource will by default create a secret which is available to any pod in th
|
|||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "kubernetes_secret" "example" {
|
||||
metadata {
|
||||
name = "basic-auth"
|
||||
|
|
Loading…
Reference in New Issue