kubes 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/_docs/helpers.md +8 -1
- data/docs/_docs/helpers/aws.md +14 -0
- data/docs/_docs/helpers/aws/iam-role.md +91 -0
- data/docs/_docs/helpers/aws/secrets.md +129 -0
- data/docs/_docs/helpers/aws/ssm.md +76 -0
- data/docs/_docs/helpers/google.md +17 -0
- data/docs/_docs/helpers/google/secrets.md +76 -0
- data/docs/_docs/helpers/google/service-account.md +52 -0
- data/docs/_includes/helpers/base64.md +1 -0
- data/docs/_includes/sidebar.html +20 -1
- data/kubes.gemspec +1 -0
- data/lib/kubes.rb +1 -0
- data/lib/kubes/compiler/shared/helpers.rb +1 -1
- data/lib/kubes/version.rb +1 -1
- metadata +24 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbdaabc58ed6ae8e1c2941431c61a3e7edf7708b7782f1d456b4bcf2b01ef777
|
4
|
+
data.tar.gz: '04290becf20d593ba00d214dd2e790eac5501e3e8f5e3b62d636b3e882b7a5e1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 302a4a216bc5007de836e335cc38e4fcd8d4c4db8d873f4333d862f84dbcfd32c302ba72c8123392f2a1679ca419be15ef660818f2b75a06b05cb0250a469198
|
7
|
+
data.tar.gz: dbbf8a825b893490963db61c6b08d2adf45ef62be0bad19d44235b1b822077ebb4e8728d45d119dddfb6f33e39ecb3d69ccb89ceda938275b8371306ca72efaa
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.4.5]
|
7
|
+
- #31 kubes AWS helpers
|
8
|
+
|
6
9
|
## [0.4.4]
|
7
10
|
- #30 friendly message for rendered erb yaml and dsl errors
|
8
11
|
- fix backtrace_reject pattern
|
data/docs/_docs/helpers.md
CHANGED
@@ -17,4 +17,11 @@ Here's also the source code with most of the helpers: [helpers.rb](https://githu
|
|
17
17
|
|
18
18
|
## DSL Specific Methods
|
19
19
|
|
20
|
-
Each DSL resource has it's own specific methods. Refer to the [DSL Docs]({% link _docs/dsl.md %}) for their methods.
|
20
|
+
Each DSL resource has it's own specific methods. Refer to the [DSL Docs]({% link _docs/dsl.md %}) for their methods.
|
21
|
+
|
22
|
+
## Provider Helpers
|
23
|
+
|
24
|
+
There are also provider-specific helpers:
|
25
|
+
|
26
|
+
* [AWS Helpers]({% link _docs/helpers/aws.md %})
|
27
|
+
* [Google Helpers]({% link _docs/helpers/google.md %})
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
title: AWS Helpers
|
3
|
+
---
|
4
|
+
|
5
|
+
List of AWS helpers:
|
6
|
+
|
7
|
+
{% assign docs = site.docs | where: "categories","helpers-aws" %}
|
8
|
+
{% for doc in docs -%}
|
9
|
+
* [{{ doc.nav_text }}]({{ doc.url }})
|
10
|
+
{% endfor %}
|
11
|
+
|
12
|
+
## Notes
|
13
|
+
|
14
|
+
* By default, `KubeGoogle.logger = Kubes.logger`. This means, you can set `logger.level = "debug"` in `.kubes/config.rb` to see more details.
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
title: AWS IAM Role
|
3
|
+
nav_text: IAM Role
|
4
|
+
categories: helpers-aws
|
5
|
+
---
|
6
|
+
|
7
|
+
You can automatically create the IAM Role associated with the Kubernetes Service Account, covered in [Introducing fine-grained IAM roles for service accounts](https://aws.amazon.com/blogs/opensource/introducing-fine-grained-iam-roles-service-accounts/).
|
8
|
+
|
9
|
+
Here's a Kubes hook that creates an IAM Role:
|
10
|
+
|
11
|
+
.kubes/config/hooks/kubes.rb
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
iam_role = KubesAws::IamRole.new(
|
15
|
+
app: "demo",
|
16
|
+
namespace: "demo-#{Kubes.env}", # defaults to APP-ENV when not set. IE: demo-dev
|
17
|
+
managed_policies: ["AmazonS3ReadOnlyAccess", "AmazonSSMReadOnlyAccess"], # defaults to empty when not set
|
18
|
+
inline_policies: [:secrets_read_only], # See Secrets Read Only Inline Policy at the bottom
|
19
|
+
)
|
20
|
+
before("apply",
|
21
|
+
label: "create iam role",
|
22
|
+
execute: iam_role,
|
23
|
+
)
|
24
|
+
KubesAws::IamRole.role_arn = iam_role.arn # used in .kubes/resources/shared/service_account.yaml
|
25
|
+
```
|
26
|
+
|
27
|
+
The corresponding Kubernetes Service account looks like this:
|
28
|
+
|
29
|
+
.kubes/resources/shared/service_account.yaml
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
apiVersion: v1
|
33
|
+
kind: ServiceAccount
|
34
|
+
metadata:
|
35
|
+
annotations:
|
36
|
+
eks.amazonaws.com/role-arn: <%= KubesAws::IamRole.role_arn %>
|
37
|
+
name: demo
|
38
|
+
labels:
|
39
|
+
app: demo
|
40
|
+
```
|
41
|
+
|
42
|
+
The role policy permissions are currently always added to the existing permissions. So removing roles that were previously added does not remove them.
|
43
|
+
|
44
|
+
IamRole#initialize options:
|
45
|
+
|
46
|
+
Variable | Description | Default
|
47
|
+
---|---|---
|
48
|
+
app | The app name. It's used to set other variables conventionally. This is required. | nil
|
49
|
+
ksa | The Kubernetes Service Account name. The conventional name is APP. IE: demo | APP
|
50
|
+
namespace | The Kubernetes namespace. Defaults to the APP-ENV. IE: demo-dev. | APP-ENV
|
51
|
+
policies | IAM policies to add. This adds permissions to the IAM Role. | []
|
52
|
+
role_name | The IAM Role name. The conventional name is APP-ENV. IE: demo-dev. | APP-ENV
|
53
|
+
|
54
|
+
## OpenID Connect Provider
|
55
|
+
|
56
|
+
The `KubesAws::IamRole` class also automatically creates the OpenID Connect Provider if it doesn't already exist.
|
57
|
+
|
58
|
+
## Secrets Read-Only Inline Policy
|
59
|
+
|
60
|
+
Note the the `:secrets_read_only` is a way to generate an Inline Policy that represents read-only access for Secrets. Kubes does this since there's no managed policy for this yet. For example:
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
inline_policies: [:secrets_read_only]
|
64
|
+
```
|
65
|
+
|
66
|
+
Is the same as:
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
inline_secrets_read_only = {
|
70
|
+
policy_document: {
|
71
|
+
Version: "2012-10-17",
|
72
|
+
Statement: {
|
73
|
+
Effect: "Allow",
|
74
|
+
Action: [
|
75
|
+
"secretsmanager:Describe*",
|
76
|
+
"secretsmanager:Get*",
|
77
|
+
"secretsmanager:List*"
|
78
|
+
],
|
79
|
+
Resource: "*"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
policy_name: "SecretsReadOnly",
|
83
|
+
}
|
84
|
+
iam_role = KubesAws::IamRole.new(
|
85
|
+
app: "rails",
|
86
|
+
cluster: "dev-cluster",
|
87
|
+
namespace: "rails-#{Kubes.env}", # defaults to APP-ENV when not set. IE: rails-dev
|
88
|
+
managed_policies: ["AmazonS3ReadOnlyAccess", "AmazonSSMReadOnlyAccess"], # defaults to empty when not set
|
89
|
+
inline_policies: [inline_secrets_read_only],
|
90
|
+
)
|
91
|
+
```
|
@@ -0,0 +1,129 @@
|
|
1
|
+
---
|
2
|
+
title: AWS Secrets
|
3
|
+
nav_text: Secrets
|
4
|
+
categories: helpers-aws
|
5
|
+
---
|
6
|
+
|
7
|
+
## Simple Values
|
8
|
+
|
9
|
+
For example if you have these secret values:
|
10
|
+
|
11
|
+
$ aws secretsmanager get-secret-value --secret-id demo/dev/db_user | jq '.SecretString'
|
12
|
+
user
|
13
|
+
$ aws secretsmanager get-secret-value --secret-id demo/dev/db_pass | jq '.SecretString'
|
14
|
+
pass
|
15
|
+
|
16
|
+
Set up a [Kubes hook](https://kubes.guru/docs/config/hooks/kubes/).
|
17
|
+
|
18
|
+
.kubes/config/hooks/kubes.rb
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
secrets = KubesAws::Secrets.new(upcase: true, prefix: "demo/dev/")
|
22
|
+
before("compile",
|
23
|
+
label: "Get secrets from AWS Secrets Manager",
|
24
|
+
execute: secrets,
|
25
|
+
)
|
26
|
+
```
|
27
|
+
|
28
|
+
Then set the secrets in the YAML:
|
29
|
+
|
30
|
+
.kubes/resources/shared/secret.yaml
|
31
|
+
|
32
|
+
```yaml
|
33
|
+
apiVersion: v1
|
34
|
+
kind: Secret
|
35
|
+
metadata:
|
36
|
+
name: demo
|
37
|
+
labels:
|
38
|
+
app: demo
|
39
|
+
data:
|
40
|
+
<% KubesAws::Secrets.data.each do |k,v| -%>
|
41
|
+
<%= k %>: <%= base64(v) %>
|
42
|
+
<% end -%>
|
43
|
+
```
|
44
|
+
|
45
|
+
This results in AWS secrets with the prefix the `demo/dev/` being added to the Kubernetes secret data. The values are automatically base64 encoded. Produces:
|
46
|
+
|
47
|
+
.kubes/output/shared/secret.yaml
|
48
|
+
|
49
|
+
```yaml
|
50
|
+
metadata:
|
51
|
+
namespace: demo
|
52
|
+
name: demo-2a78a13682
|
53
|
+
labels:
|
54
|
+
app: demo
|
55
|
+
apiVersion: v1
|
56
|
+
kind: Secret
|
57
|
+
data:
|
58
|
+
db_pass: dGVzdDEK
|
59
|
+
db_user: dGVzdDIK
|
60
|
+
```
|
61
|
+
|
62
|
+
## JSON Values
|
63
|
+
|
64
|
+
For example if you have these secret values:
|
65
|
+
|
66
|
+
$ aws secretsmanager get-secret-value --secret-id demo/dev/k2 | jq '.SecretString'
|
67
|
+
{\"a\":1,\"b\":2}"
|
68
|
+
|
69
|
+
Set up a [Kubes hook](https://kubes.guru/docs/config/hooks/kubes/).
|
70
|
+
|
71
|
+
.kubes/config/hooks/kubes.rb
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
secrets = KubesAws::Secrets.new(prefix: "rails/dev/")
|
75
|
+
before("compile",
|
76
|
+
label: "Get secrets from AWS Secrets Manager",
|
77
|
+
execute: secrets,
|
78
|
+
)
|
79
|
+
```
|
80
|
+
|
81
|
+
Then set the secrets in the YAML:
|
82
|
+
|
83
|
+
.kubes/resources/shared/secret.yaml
|
84
|
+
|
85
|
+
```yaml
|
86
|
+
apiVersion: v1
|
87
|
+
kind: Secret
|
88
|
+
metadata:
|
89
|
+
name: demo
|
90
|
+
labels:
|
91
|
+
app: demo
|
92
|
+
data:
|
93
|
+
<% k2 = JSON.load(KubesAws::Secrets.data["k2"]) %>
|
94
|
+
a: <%= base64(k2["a"]) %>
|
95
|
+
b: <%= base64(k2["b"]) %>
|
96
|
+
```
|
97
|
+
|
98
|
+
Produces:
|
99
|
+
|
100
|
+
```yaml
|
101
|
+
metadata:
|
102
|
+
namespace: demo-dev
|
103
|
+
name: demo-a4cd604a95
|
104
|
+
labels:
|
105
|
+
app: demo
|
106
|
+
apiVersion: v1
|
107
|
+
kind: Secret
|
108
|
+
data:
|
109
|
+
a: MQ==
|
110
|
+
b: Mg==
|
111
|
+
```
|
112
|
+
|
113
|
+
## Variables
|
114
|
+
|
115
|
+
These environment variables can be set:
|
116
|
+
|
117
|
+
Name | Description
|
118
|
+
---|---
|
119
|
+
AWS_SECRET_PREFIX | Prefixed used to list and filter AWS secrets. IE: `demo/dev/`.
|
120
|
+
|
121
|
+
Secrets#initialize options:
|
122
|
+
|
123
|
+
Variable | Description | Default
|
124
|
+
---|---|---
|
125
|
+
base64 | Automatically base64 encode the values. | false
|
126
|
+
upcase | Automatically upcase the Kubernetes secret data keys. | false
|
127
|
+
prefix | Prefixed used to list and filter AWS secrets. IE: `demo/dev/`. Can also be set with the `AWS_SECRET_PREFIX` env variable. The env variable takes the highest precedence. | nil
|
128
|
+
|
129
|
+
{% include helpers/base64.md %}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
title: AWS SSM Parameters
|
3
|
+
nav_text: SSM
|
4
|
+
categories: helpers-aws
|
5
|
+
---
|
6
|
+
|
7
|
+
For example if you have these secret values:
|
8
|
+
|
9
|
+
$ aws ssm get-parameter --name /demo/development/db_user --with-decryption | jq '.Parameter.Value'
|
10
|
+
user
|
11
|
+
$ aws ssm get-parameter --name /demo/development/db_pass --with-decryption | jq '.Parameter.Value'
|
12
|
+
pass
|
13
|
+
|
14
|
+
Set up a [Kubes hook](https://kubes.guru/docs/config/hooks/kubes/).
|
15
|
+
|
16
|
+
.kubes/config/hooks/kubes.rb
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
ssm = KubesAws::SSM.new(upcase: true, prefix: "/demo/development/")
|
20
|
+
before("compile",
|
21
|
+
label: "Get secrets from AWS SSM Manager",
|
22
|
+
execute: ssm,
|
23
|
+
)
|
24
|
+
```
|
25
|
+
|
26
|
+
Then set the secrets in the YAML:
|
27
|
+
|
28
|
+
.kubes/resources/shared/secret.yaml
|
29
|
+
|
30
|
+
```yaml
|
31
|
+
apiVersion: v1
|
32
|
+
kind: Secret
|
33
|
+
metadata:
|
34
|
+
name: demo
|
35
|
+
labels:
|
36
|
+
app: demo
|
37
|
+
data:
|
38
|
+
<% KubesAws::SSM.data.each do |k,v| -%>
|
39
|
+
<%= k %>: <%= base64(v) %>
|
40
|
+
<% end -%>
|
41
|
+
```
|
42
|
+
|
43
|
+
This results in AWS secrets with the prefix the `demo/dev/` being added to the Kubernetes secret data. The values are automatically base64 encoded. Produces:
|
44
|
+
|
45
|
+
.kubes/output/shared/secret.yaml
|
46
|
+
|
47
|
+
```yaml
|
48
|
+
metadata:
|
49
|
+
namespace: demo
|
50
|
+
name: demo-2a78a13682
|
51
|
+
labels:
|
52
|
+
app: demo
|
53
|
+
apiVersion: v1
|
54
|
+
kind: Secret
|
55
|
+
data:
|
56
|
+
db_pass: dGVzdDEK
|
57
|
+
db_user: dGVzdDIK
|
58
|
+
```
|
59
|
+
|
60
|
+
## Variables
|
61
|
+
|
62
|
+
These environment variables can be set:
|
63
|
+
|
64
|
+
Name | Description
|
65
|
+
---|---
|
66
|
+
AWS_SSM_PREFIX | Prefixed used to list and filter AWS SSM Parameters. IE: `demo/dev/`.
|
67
|
+
|
68
|
+
Secrets#initialize options:
|
69
|
+
|
70
|
+
Variable | Description | Default
|
71
|
+
---|---|---
|
72
|
+
base64 | Automatically base64 encode the values. | false
|
73
|
+
upcase | Automatically upcase the Kubernetes secret data keys. | false
|
74
|
+
prefix | Prefixed used to list and filter AWS secrets. IE: `demo/dev/`. Can also be set with the `AWS_SECRET_PREFIX` env variable. The env variable takes the highest precedence. | nil
|
75
|
+
|
76
|
+
{% include helpers/base64.md %}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
title: Google Helpers
|
3
|
+
---
|
4
|
+
|
5
|
+
List of Google helpers:
|
6
|
+
|
7
|
+
{% assign docs = site.docs | where: "categories","helpers-aws" %}
|
8
|
+
{% for doc in docs -%}
|
9
|
+
* [{{ doc.nav_text }}]({{ doc.url }})
|
10
|
+
{% endfor %}
|
11
|
+
|
12
|
+
## Notes
|
13
|
+
|
14
|
+
* By default, `KubeGoogle.logger = Kubes.logger`. This means, you can set `logger.level = "debug"` in `.kubes/config.rb` to see more details.
|
15
|
+
* The `gcloud` cli is used to create IAM roles. So `gcloud` is required.
|
16
|
+
* Note: Would like to use the google sdk, but it wasn't obvious how to do so. PRs are welcomed.
|
17
|
+
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
title: Google Secrets
|
3
|
+
nav_text: Secrets
|
4
|
+
categories: helpers-google
|
5
|
+
---
|
6
|
+
|
7
|
+
Set up a [Kubes hook](https://kubes.guru/docs/config/hooks/kubes/).
|
8
|
+
|
9
|
+
.kubes/config/hooks/kubes.rb
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
before("compile",
|
13
|
+
execute: KubesGoogle::Secrets.new(upcase: true, prefix: 'projects/686010496118/secrets/demo-dev-')
|
14
|
+
)
|
15
|
+
```
|
16
|
+
|
17
|
+
Then set the secrets in the YAML:
|
18
|
+
|
19
|
+
.kubes/resources/shared/secret.yaml
|
20
|
+
|
21
|
+
```yaml
|
22
|
+
apiVersion: v1
|
23
|
+
kind: Secret
|
24
|
+
metadata:
|
25
|
+
name: demo
|
26
|
+
labels:
|
27
|
+
app: demo
|
28
|
+
data:
|
29
|
+
<% KubesGoogle::Secrets.data.each do |k,v| -%>
|
30
|
+
<%= k %>: <%= base64(v) %>
|
31
|
+
<% end -%>
|
32
|
+
```
|
33
|
+
|
34
|
+
This results in Google secrets with the prefix the `demo-dev-` being added to the Kubernetes secret data. The values are automatically base64 encoded.
|
35
|
+
|
36
|
+
For example if you have these secret values:
|
37
|
+
|
38
|
+
$ gcloud secrets versions access latest --secret demo-dev-db_user
|
39
|
+
test1
|
40
|
+
$ gcloud secrets versions access latest --secret demo-dev-db_pass
|
41
|
+
test2
|
42
|
+
$
|
43
|
+
|
44
|
+
.kubes/output/shared/secret.yaml
|
45
|
+
|
46
|
+
```yaml
|
47
|
+
metadata:
|
48
|
+
namespace: demo
|
49
|
+
name: demo-2a78a13682
|
50
|
+
labels:
|
51
|
+
app: demo
|
52
|
+
apiVersion: v1
|
53
|
+
kind: Secret
|
54
|
+
data:
|
55
|
+
db_pass: dGVzdDEK
|
56
|
+
db_user: dGVzdDIK
|
57
|
+
```
|
58
|
+
|
59
|
+
## Variables
|
60
|
+
|
61
|
+
These environment variables can be set:
|
62
|
+
|
63
|
+
Name | Description
|
64
|
+
---|---
|
65
|
+
GCP_SECRET_PREFIX | Prefixed used to list and filter Google secrets. IE: `projects/686010496118/secrets/demo-dev-`.
|
66
|
+
GOOGLE_PROJECT | Google project id.
|
67
|
+
|
68
|
+
Secrets#initialize options:
|
69
|
+
|
70
|
+
Variable | Description | Default
|
71
|
+
---|---|---
|
72
|
+
base64 | Automatically base64 encode the values. | false
|
73
|
+
upcase | Automatically upcase the Kubernetes secret data keys. | false
|
74
|
+
prefix | Prefixed used to list and filter Google secrets. IE: `projects/686010496118/secrets/demo-dev-`. Can also be set with the `GCP_SECRET_PREFIX` env variable. The env variable takes the highest precedence. | nil
|
75
|
+
|
76
|
+
{% include helpers/base64.md %}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
title: Google Service Account
|
3
|
+
nav_text: Service Account
|
4
|
+
categories: helpers-google
|
5
|
+
---
|
6
|
+
|
7
|
+
## Service Accounts
|
8
|
+
|
9
|
+
You can automatically create the Google Service Account associated with the [GKE Workload Identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity).
|
10
|
+
|
11
|
+
Here's a Kubes hook that creates a service account:
|
12
|
+
|
13
|
+
.kubes/config/hooks/kubes.rb
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
service_account = KubesGoogle::ServiceAccount.new(
|
17
|
+
app: "demo",
|
18
|
+
namespace: "demo-#{Kubes.env}", # defaults to APP-ENV when not set. IE: demo-dev
|
19
|
+
roles: ["cloudsql.client", "secretmanager.viewer"], # defaults to empty when not set
|
20
|
+
)
|
21
|
+
before("apply",
|
22
|
+
label: "create service account",
|
23
|
+
execute: service_account,
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
27
|
+
The corresponding Kubernetes Service account looks like this:
|
28
|
+
|
29
|
+
.kubes/resources/shared/service_account.yaml
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
apiVersion: v1
|
33
|
+
kind: ServiceAccount
|
34
|
+
metadata:
|
35
|
+
annotations:
|
36
|
+
iam.gke.io/gcp-service-account: demo-<%= Kubes.env %>@<%= ENV['GOOGLE_PROJECT'] %>.iam.gserviceaccount.com
|
37
|
+
name: demo
|
38
|
+
labels:
|
39
|
+
app: demo
|
40
|
+
```
|
41
|
+
|
42
|
+
The role permissions are currently always added to the existing permissions. So removing roles that were previously added does not remove them.
|
43
|
+
|
44
|
+
ServiceAccount#initialize options:
|
45
|
+
|
46
|
+
Variable | Description | Default
|
47
|
+
---|---|---
|
48
|
+
app | The app name. It's used to set other variables conventionally. This is required. | nil
|
49
|
+
gsa | The Google Service Account name. The conventional name is APP-ENV. IE: demo-dev. | APP-ENV
|
50
|
+
ksa | The Kubernetes Service Account name. The conventional name is APP. IE: demo | APP
|
51
|
+
namespace | The Kubernetes namespace. Defaults to the APP-ENV. IE: demo-dev. | APP-ENV
|
52
|
+
roles | Google IAM roles to add. This adds permissions to the Google service account. | []
|
@@ -0,0 +1 @@
|
|
1
|
+
Note, Kubernetes secrets are only base64 encoded. So users who have access to read Kubernetes secrets will be able to decode and get the value trivially. Depending on your security posture requirements, this may or may not suffice.
|
data/docs/_includes/sidebar.html
CHANGED
@@ -97,7 +97,26 @@
|
|
97
97
|
<li><a href="{% link _docs/dsl/multiple-resources.md %}">Multiple Resources</a>
|
98
98
|
</ul>
|
99
99
|
</li>
|
100
|
-
<li><a href="{% link _docs/helpers.md %}">Helpers</a
|
100
|
+
<li><a href="{% link _docs/helpers.md %}">Helpers</a>
|
101
|
+
<ul>
|
102
|
+
<li><a href="{% link _docs/helpers/aws.md %}">AWS</a>
|
103
|
+
<ul>
|
104
|
+
{% assign docs = site.docs | where: "categories","helpers-aws" %}
|
105
|
+
{% for doc in docs -%}
|
106
|
+
<li><a href="{{ doc.url }}">{{ doc.nav_text }}</a></li>
|
107
|
+
{% endfor %}
|
108
|
+
</ul>
|
109
|
+
</li>
|
110
|
+
<li><a href="{% link _docs/helpers/google.md %}">Google</a>
|
111
|
+
<ul>
|
112
|
+
{% assign docs = site.docs | where: "categories","helpers-google" %}
|
113
|
+
{% for doc in docs -%}
|
114
|
+
<li><a href="{{ doc.url }}">{{ doc.nav_text }}</a></li>
|
115
|
+
{% endfor %}
|
116
|
+
</ul>
|
117
|
+
</li>
|
118
|
+
</ul>
|
119
|
+
</li>
|
101
120
|
<li><a href="{% link _docs/patterns.md %}">Patterns</a>
|
102
121
|
<ul>
|
103
122
|
{% assign docs = site.docs | where: "categories","patterns" %}
|
data/kubes.gemspec
CHANGED
data/lib/kubes.rb
CHANGED
data/lib/kubes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: kubes_aws
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: kubes_google
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,6 +299,13 @@ files:
|
|
285
299
|
- docs/_docs/extra-env/dsl.md
|
286
300
|
- docs/_docs/extra-env/yaml.md
|
287
301
|
- docs/_docs/helpers.md
|
302
|
+
- docs/_docs/helpers/aws.md
|
303
|
+
- docs/_docs/helpers/aws/iam-role.md
|
304
|
+
- docs/_docs/helpers/aws/secrets.md
|
305
|
+
- docs/_docs/helpers/aws/ssm.md
|
306
|
+
- docs/_docs/helpers/google.md
|
307
|
+
- docs/_docs/helpers/google/secrets.md
|
308
|
+
- docs/_docs/helpers/google/service-account.md
|
288
309
|
- docs/_docs/intro.md
|
289
310
|
- docs/_docs/intro/concepts.md
|
290
311
|
- docs/_docs/intro/how-kubes-works.md
|
@@ -339,6 +360,7 @@ files:
|
|
339
360
|
- docs/_includes/footer.html
|
340
361
|
- docs/_includes/google_analytics.html
|
341
362
|
- docs/_includes/header.html
|
363
|
+
- docs/_includes/helpers/base64.md
|
342
364
|
- docs/_includes/intro/install.md
|
343
365
|
- docs/_includes/js.html
|
344
366
|
- docs/_includes/kubes-steps.md
|