-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jsii
230 lines (230 loc) · 10 KB
/
.jsii
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
"author": {
"email": "[email protected]",
"name": "mziyabo",
"roles": [
"author"
]
},
"dependencies": {
"constructs": "^2.0.1"
},
"dependencyClosure": {
"constructs": {
"targets": {
"dotnet": {
"namespace": "Constructs",
"packageId": "Constructs"
},
"java": {
"maven": {
"artifactId": "constructs",
"groupId": "software.constructs"
},
"package": "software.constructs"
},
"js": {
"npm": "constructs"
},
"python": {
"distName": "constructs",
"module": "constructs"
}
}
}
},
"description": "cdk8s-xray",
"homepage": "https://github.com/mziyabo/cdk8s-xray#readme",
"jsiiVersion": "1.5.0 (build 46538f8)",
"license": "Apache-2.0",
"name": "cdk8s-xray",
"readme": {
"markdown": "## cdks8-xray\nProvides a cdk8s Construct to synthesize [AWS X-Ray](https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html) api-resources on Amazon EKS.\n\n![Build](https://github.com/mziyabo/cdk8s-xray/workflows/Build/badge.svg?branch=master)\n[![NPM Version](https://img.shields.io/npm/v/cdk8s-xray.svg)](https://npmjs.org/package/cdk8s-xray)\n\n\n### Installation and Usage\n\nInstall `cdk8s-xray` construct from `npm` or `yarn`:\n\n```\nnpm install -s cdk8s-xray\n```\n\nUsage:\n\n``` typescript\nimport { XRayApp, DaemonProtocol, XRayConfig } from 'cdk8s-xray'\n\n// inside your chart:\nlet config: XRayConfig = {\n image: \"rnzdocker1/eks-workshop-x-ray-daemon:dbada4c77e6ae10ecf5a7b1c5864aa6522d9fb02\",\n ns: \"default\",\n daemon: {\n daemonProtocol: DaemonProtocol.UDP,\n port: 2000,\n logLevel: \"prod\"\n }\n}\n\nnew XRayApp(this, 'prod', config);\n```\n\n### Features:\n- Adapted from the [EKS Workshop X-Ray](https://eksworkshop.com/intermediate/245_x-ray/x-ray-daemon/). A few `cdk8s` quirks make the generated manifest different though:\n\n <details>\n <summary>manifest.k8s.yaml</summary>\n\n ```yaml\n apiVersion: rbac.authorization.k8s.io/v1\n kind: ClusterRoleBinding\n metadata:\n name: xray-prod-clusterrolebinding-xray-daemon-b962136e\n roleRef:\n apiGroup: rbac.authorization.k8s.io\n kind: ClusterRole\n name: cluster-admin\n subjects:\n - kind: ServiceAccount\n name: xray-daemon\n namespace: default\n ---\n apiVersion: v1\n kind: Service\n metadata:\n name: xray-service\n spec:\n clusterIP: None\n ports:\n - name: incoming\n port: 2000\n protocol: UDP\n selector:\n app: xray-daemon\n cdk8s/chart: xray\n ---\n apiVersion: v1\n kind: ServiceAccount\n metadata:\n labels:\n app: xray-daemon\n cdk8s/chart: xray\n name: xray-daemon\n namespace: default\n ---\n apiVersion: apps/v1\n kind: DaemonSet\n metadata:\n name: xray-prod-daemonset-xray-daemon-fcac88af\n spec:\n selector:\n matchLabels:\n app: xray-daemon\n cdk8s/chart: xray\n template:\n metadata:\n labels:\n app: xray-daemon\n cdk8s/chart: xray\n spec:\n containers:\n - command:\n - /usr/bin/xray\n - -c\n - /aws/xray/config.yaml\n image: rnzdocker1/eks-workshop-x-ray-daemon:dbada4c77e6ae10ecf5a7b1c5864aa6522d9fb02\n imagePullPolicy: Always\n name: xray-daemon\n ports:\n - containerPort: 2000\n hostPort: 2000\n name: xray-ingest\n protocol: UDP\n resources:\n limits:\n memory: 24Mi\n volumeMounts:\n - mountPath: /aws/xray\n name: config-volume\n readOnly: true\n hostNetwork: true\n volumes:\n - configMap:\n name: xray-config\n name: config-volume\n updateStrategy:\n type: RollingUpdate\n ---\n apiVersion: v1\n data:\n config.yaml: >-\n # Maximum buffer size in MB (minimum 3). Choose 0 to use 1% of host memory.\n\n TotalBufferSizeMB: 0\n\n # Maximum number of concurrent calls to AWS X-Ray to upload segment documents.\n\n Concurrency: 8\n\n # Send segments to AWS X-Ray service in a specific region\n\n Region: \"\"\n\n # Change the X-Ray service endpoint to which the daemon sends segment documents.\n\n Endpoint: \"\"\n\n Socket:\n # Change the address and port on which the daemon listens for UDP packets containing segment documents.\n # Make sure we listen on all IP's by default for the k8s setup\n UDPAddress: 0.0.0.0:2000\n Logging:\n LogRotation: true\n # Change the log level, from most verbose to least: dev, debug, info, warn, error, prod (default).\n LogLevel: prod\n # Output logs to the specified file path.\n LogPath: \"\"\n # Turn on local mode to skip EC2 instance metadata check.\n\n LocalMode: false\n\n # Amazon Resource Name (ARN) of the AWS resource running the daemon.\n\n ResourceARN: \"\"\n\n # Assume an IAM role to upload segments to a different account.\n\n RoleARN: \"\"\n\n # Disable TLS certificate verification.\n\n NoVerifySSL: false\n\n # Upload segments to AWS X-Ray through a proxy.\n\n ProxyAddress: \"\"\n\n # Daemon configuration file format version.\n\n Version: 1\n kind: ConfigMap\n metadata:\n name: xray-config\n\n ```\n </details>\n\n### Release Notes:\nInitial Release, Contributions welcome\n\n### License:\nApache-2.0"
},
"repository": {
"type": "git",
"url": "https://github.com/mziyabo/cdk8s-xray"
},
"schema": "jsii/0.10.0",
"targets": {
"js": {
"npm": "cdk8s-xray"
},
"python": {
"distName": "cdk8s-xray",
"module": "cdk8s-xray"
}
},
"types": {
"cdk8s-xray.DaemonProtocol": {
"assembly": "cdk8s-xray",
"fqn": "cdk8s-xray.DaemonProtocol",
"kind": "enum",
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 45
},
"members": [
{
"name": "UDP"
},
{
"name": "TCP"
}
],
"name": "DaemonProtocol"
},
"cdk8s-xray.DaemonSettings": {
"assembly": "cdk8s-xray",
"datatype": true,
"fqn": "cdk8s-xray.DaemonSettings",
"kind": "interface",
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 26
},
"name": "DaemonSettings",
"properties": [
{
"abstract": true,
"docs": {
"summary": "Protocol to use for AWS X-Ray Daemon."
},
"immutable": true,
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 31
},
"name": "daemonProtocol",
"type": {
"fqn": "cdk8s-xray.DaemonProtocol"
}
},
{
"abstract": true,
"docs": {
"summary": "Port number for AWS X-Ray Daemon."
},
"immutable": true,
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 36
},
"name": "port",
"type": {
"primitive": "number"
}
},
{
"abstract": true,
"docs": {
"summary": "Log level for AWS X-Ray Daemon."
},
"immutable": true,
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 41
},
"name": "logLevel",
"optional": true,
"type": {
"primitive": "string"
}
}
]
},
"cdk8s-xray.XRayApp": {
"assembly": "cdk8s-xray",
"base": "constructs.Construct",
"fqn": "cdk8s-xray.XRayApp",
"initializer": {
"parameters": [
{
"name": "scope",
"type": {
"fqn": "constructs.Construct"
}
},
{
"name": "name",
"type": {
"primitive": "string"
}
},
{
"name": "config",
"type": {
"fqn": "cdk8s-xray.XRayConfig"
}
}
]
},
"kind": "class",
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 50
},
"name": "XRayApp"
},
"cdk8s-xray.XRayConfig": {
"assembly": "cdk8s-xray",
"datatype": true,
"fqn": "cdk8s-xray.XRayConfig",
"kind": "interface",
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 8
},
"name": "XRayConfig",
"properties": [
{
"abstract": true,
"docs": {
"summary": "AWS X-Ray Daemon Settings."
},
"immutable": true,
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 23
},
"name": "daemon",
"type": {
"fqn": "cdk8s-xray.DaemonSettings"
}
},
{
"abstract": true,
"docs": {
"summary": "Image to use for AWS X-Ray Daemon."
},
"immutable": true,
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 18
},
"name": "image",
"type": {
"primitive": "string"
}
},
{
"abstract": true,
"docs": {
"summary": "Namespace to deploy chart resources into."
},
"immutable": true,
"locationInModule": {
"filename": "src\\xrayapp.ts",
"line": 13
},
"name": "ns",
"type": {
"primitive": "string"
}
}
]
}
},
"version": "0.1.3",
"fingerprint": "45WNSyjAjDECJadwzVI8SSqd3A1bupARJNJTqf1GZSQ="
}