Update kubernetes provider

This commit is contained in:
Seth Vargo 2017-04-10 12:26:41 -04:00
parent d37bf808df
commit ecda27e05a
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF
4 changed files with 16 additions and 12 deletions

View File

@ -16,7 +16,7 @@ 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"
@ -58,11 +58,12 @@ 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"
username = "ClusterMaster"
password = "MindTheGap"
client_certificate = "${file("~/.kube/client-cert.pem")}"
client_key = "${file("~/.kube/client-key.pem")}"
cluster_ca_certificate = "${file("~/.kube/cluster-ca-cert.pem")}"

View File

@ -13,11 +13,12 @@ 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"
}
data {
api_host = "myhost:443"
db_host = "dbhost:5432"

View File

@ -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"
}
}

View File

@ -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"