-
Notifications
You must be signed in to change notification settings - Fork 0
/
eks-cluster.create.help
1672 lines (1482 loc) · 73 KB
/
eks-cluster.create.help
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
## Version: 0.1.0
script_name=$(basename ${0});
function how2create_cluster () {
## tracking_process ${FUNCNAME} "${@}";
display_message "$ eks-cluster \
--create-cluster=kubernetes.devops \
--access-pubkey=~/.ssh/kubernetes.pub \
--verbose \
--debug \
;
Function [deploy_kubernetes]:
[ℹ] eksctl version 0.11.1
[ℹ] using region us-east-1
[ℹ] subnets for us-east-1a - public:192.168.0.0/19 private:192.168.96.0/19
[ℹ] subnets for us-east-1b - public:192.168.32.0/19 private:192.168.128.0/19
[ℹ] subnets for us-east-1c - public:192.168.64.0/19 private:192.168.160.0/19
[ℹ] using SSH public key \"/Users/prototype/.ssh/kubernetes.pub\" as \"eksctl-prototype-nodegroup-devops-b5:89:0b:9d:9a:58:53:b0:06:df:11:11:87:60:74:c7\"
[ℹ] using Kubernetes version 1.14
[ℹ] creating EKS cluster \"prototype\" in \"us-east-1\" region with managed nodes
[ℹ] will create 2 separate CloudFormation stacks for cluster itself and the initial managed nodegroup
[ℹ] if you encounter any issues, check CloudFormation console or try 'eksctl utils describe-stacks --region=us-east-1 --cluster=prototype'
[ℹ] CloudWatch logging will not be enabled for cluster \"prototype\" in \"us-east-1\"
[ℹ] you can enable it with 'eksctl utils update-cluster-logging --region=us-east-1 --cluster=prototype'
[ℹ] Kubernetes API endpoint access will use default of {publicAccess=true, privateAccess=false} for cluster \"prototype\" in \"us-east-1\"
[ℹ] 2 sequential tasks: { create cluster control plane \"prototype\", create managed nodegroup \"devops\" }
[ℹ] building cluster stack \"eksctl-prototype-cluster\"
[ℹ] deploying stack \"eksctl-prototype-cluster\"
[ℹ] building managed nodegroup stack \"eksctl-prototype-nodegroup-devops\"
[ℹ] deploying stack \"eksctl-prototype-nodegroup-devops\"
[✔] all EKS cluster resources for \"prototype\" have been created
[✔] saved kubeconfig as \"/Users/prototype/.kube/eksctl/clusters/prototype\"
[ℹ] nodegroup \"devops\" has 2 node(s)
[ℹ] node \"ip-192-168-52-90.ec2.internal\" is ready
[ℹ] node \"ip-192-168-66-209.ec2.internal\" is ready
[ℹ] waiting for at least 2 node(s) to become ready in \"devops\"
[ℹ] nodegroup \"devops\" has 2 node(s)
[ℹ] node \"ip-192-168-52-90.ec2.internal\" is ready
[ℹ] node \"ip-192-168-66-209.ec2.internal\" is ready
[ℹ] kubectl command should work with \"/Users/prototype/.kube/eksctl/clusters/prototype\", try 'kubectl --kubeconfig=/Users/prototype/.kube/eksctl/clusters/prototype get nodes'
[✔] EKS cluster \"prototype\" in \"us-east-1\" region is ready
[ℹ] eksctl version 0.11.1
[ℹ] using region us-east-1
[✔] saved kubeconfig as \"/Users/prototype/.kube/eksctl/clusters/prototype\"
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: DATA+OMITTED
server: https://31D0097B30C6300A1AD47CD740DB4E4E.yl4.us-east-1.eks.amazonaws.com
name: prototype.us-east-1.eksctl.io
contexts:
- context:
cluster: prototype.us-east-1.eksctl.io
user: [email protected]
name: [email protected]
current-context: [email protected]
kind: Config
preferences: {}
users:
- name: [email protected]
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
args:
- token
- -i
- prototype
command: aws-iam-authenticator
env:
- name: AWS_PROFILE
value: kubernetes
Continue [Y/n]?: y
Function [cluster_token]:
{
\"apiVersion\": \"client.authentication.k8s.io/v1alpha1\",
\"kind\": \"ExecCredential\",
\"spec\": {},
\"status\": {
\"expirationTimestamp\": \"2019-12-23T08:57:47Z\",
\"token\": \"k8s-aws-v1.aHR0cHM6Ly9zdHMuYW1hem9uYXdzLmNvbS8_QWN0aW9uPUdldENhbGxlcklkZW50aXR5JlZlcnNpb249MjAxMS0wNi0xNSZYLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFaWlAyNjU0MkJLQzI3TDRZJTJGMjAxOTEyMjMlMkZ1cy1lYXN0LTElMkZzdHMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDE5MTIyM1QwODQzNDdaJlgtQW16LUV4cGlyZXM9MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QlM0J4LWs4cy1hd3MtaWQmWC1BbXotU2lnbmF0dXJlPWM4NjI1NjU2MmM5YzRhYzk5YjJhMzBmMzFiMGQwMzExYzFmYzkyNjY5ZDYxZGIwZDVlODQ3ODAzYjMwZGJlZWQ\"
}
}
Continue [Y/n]?: y
Function [configure_logging]:
[ℹ] eksctl version 0.11.1
[ℹ] using region us-east-1
[ℹ] will update CloudWatch logging for cluster \"prototype\" in \"us-east-1\" (enable types: api, audit, authenticator, controllerManager, scheduler & no types to disable)
[✔] configured CloudWatch logging for cluster \"prototype\" in \"us-east-1\" (enabled types: api, audit, authenticator, controllerManager, scheduler & no types disabled)
Continue [Y/n]?: y
Function [metricsserver_deploy]:
clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader created
clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator created
rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader created
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io created
serviceaccount/metrics-server created
deployment.apps/metrics-server created
service/metrics-server created
clusterrole.rbac.authorization.k8s.io/system:metrics-server created
clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server created
Continue [Y/n]?: y
Function [describe_stacks]:
[ℹ] eksctl version 0.11.1
[ℹ] using region us-east-1
[ℹ] stack/eksctl-prototype-nodegroup-devops = {
Capabilities: [\"CAPABILITY_IAM\"],
CreationTime: 2019-12-23 08:41:16.73 +0000 UTC,
Description: \"EKS Managed Nodes (SSH access: true) [created by eksctl]\",
DisableRollback: false,
DriftInformation: {
StackDriftStatus: \"NOT_CHECKED\"
},
EnableTerminationProtection: false,
RollbackConfiguration: {
},
StackId: \"arn:aws:cloudformation:us-east-1:738054984624:stack/eksctl-prototype-nodegroup-devops/fbe8cbc0-255f-11ea-ae41-0afe492705d7\",
StackName: \"eksctl-prototype-nodegroup-devops\",
StackStatus: \"CREATE_COMPLETE\",
Tags: [
{
Key: \"alpha.eksctl.io/cluster-name\",
Value: \"prototype\"
},
{
Key: \"Owner\",
Value: \"SRE Team\"
},
{
Key: \"alpha.eksctl.io/nodegroup-name\",
Value: \"devops\"
},
{
Key: \"eksctl.cluster.k8s.io/v1alpha1/cluster-name\",
Value: \"prototype\"
},
{
Key: \"Team\",
Value: \"DevOps Team\"
},
{
Key: \"alpha.eksctl.io/nodegroup-type\",
Value: \"managed\"
},
{
Key: \"Creator\",
Value: \"Eduardo Valdes\"
}
]
}
[ℹ] stack/eksctl-prototype-cluster = {
Capabilities: [\"CAPABILITY_IAM\"],
CreationTime: 2019-12-23 08:28:34.88 +0000 UTC,
Description: \"EKS cluster (dedicated VPC: true, dedicated IAM: true) [created and managed by eksctl]\",
DisableRollback: false,
DriftInformation: {
StackDriftStatus: \"NOT_CHECKED\"
},
EnableTerminationProtection: false,
Outputs: [
{
ExportName: \"eksctl-prototype-cluster::SubnetsPrivate\",
OutputKey: \"SubnetsPrivate\",
OutputValue: \"subnet-06f80d112a35bcbc5,subnet-088cf0f3c3ca8d8a3,subnet-03804f05568eb39ba\"
},
{
ExportName: \"eksctl-prototype-cluster::SubnetsPublic\",
OutputKey: \"SubnetsPublic\",
OutputValue: \"subnet-0f5f396fc169fa3cc,subnet-09a7c44bb0d763ea1,subnet-0f2ee3e2b65f9660f\"
},
{
ExportName: \"eksctl-prototype-cluster::ServiceRoleARN\",
OutputKey: \"ServiceRoleARN\",
OutputValue: \"arn:aws:iam::738054984624:role/eksctl-prototype-cluster-ServiceRole-1NTUNUAY288AO\"
},
{
ExportName: \"eksctl-prototype-cluster::VPC\",
OutputKey: \"VPC\",
OutputValue: \"vpc-094eb6f95cb478207\"
},
{
OutputKey: \"ClusterStackName\",
OutputValue: \"eksctl-prototype-cluster\"
},
{
OutputKey: \"CertificateAuthorityData\",
OutputValue: \"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNU1USXlNekE0TXpneU9Wb1hEVEk1TVRJeU1EQTRNemd5T1Zvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBS21RCmJFRmZkTEdTSUU5YTgzY3ZIMFBqblJOZEo3aHN2VDV2UlpLcFlOZlg3TWdiZ0hVOG11WXdJYnZVQjJDSXZNK3kKN2M2QVozeUsrSTd5WjIxck5kSlBsaFV5RThZd09RdGJxOGNDdHl2RklFUnRxRXVrbmo2MW1ET01LTXFjeDdpQgpySTdHWVFrbmtYME83VUdhQWRpOExIaXBCTXdpTHI5bEhHQXhQSGx6V3pJcTdEUXNBc0VnaW9CTHhNVUtOaFRwCmljeFFIOVU2MXdtZGFIeXJ3WFRubm4vWGRBdUtmWVRmOWZzczlXa2ZDTTdCdmZzNjUxaUh5WVFsaDJJNjJCcTAKWWFDNUt1ODFkam4rZXVZak1TTFg1QlJrZTdDMFBqeHgzT0huek52R2lzVGNxcHNjZktuWVRRWStpT0IzNDh6SwpKYzRnYkNNWFl1djhUalB1bTVjQ0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFIZ3RsSk9zTWkraWZST1RMWERrLzhwbksyOHIKNGdvWFpCTXNoaVpKYXhWMWo1WURTSUc5dzZlNUUyZlQ3d05Ud0ZLWWk2MXNodERIK1NLaGRRaFBtN1FaLy9EOAphaGRORnNpTkdYVHhMVzhPSlNXa1graWZXWStKS3AzWWVlWkN1bDFYd3lkc0xsMGJSYldaNVBEdk9VQW1jNng3CmcyZEMyekxBaklRdU1KbHdjWGFEYmF6UzRra1VSVkpWZFNpUW5tOW5nZmttWDZrSmtJeDJENmZjV0FSeUFZVGgKVGJsWFFoMGY5L2YweDdIUHNvOFBWeDJXV1JRbnZoanlnVVlOK3BUNEduTm9DZkliVHBVS2pOQjJsMkpjNElZawpUVmhKSHlSaVNzSWZLL1J5T0F0RWxvckRqU0N4YXFmV2tVU0pYZXFjM2IvVkJIa1RVeVhvRElwTEVYTT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=\"
},
{
ExportName: \"eksctl-prototype-cluster::SecurityGroup\",
OutputKey: \"SecurityGroup\",
OutputValue: \"sg-054594ae12482ff56\"
},
{
OutputKey: \"FeatureNATMode\",
OutputValue: \"Single\"
},
{
ExportName: \"eksctl-prototype-cluster::Endpoint\",
OutputKey: \"Endpoint\",
OutputValue: \"https://31D0097B30C6300A1AD47CD740DB4E4E.yl4.us-east-1.eks.amazonaws.com\"
},
{
ExportName: \"eksctl-prototype-cluster::SharedNodeSecurityGroup\",
OutputKey: \"SharedNodeSecurityGroup\",
OutputValue: \"sg-0992e20edb053545d\"
},
{
ExportName: \"eksctl-prototype-cluster::ClusterSecurityGroupId\",
OutputKey: \"ClusterSecurityGroupId\",
OutputValue: \"sg-0802d870efe4f66a2\"
},
{
ExportName: \"eksctl-prototype-cluster::ARN\",
OutputKey: \"ARN\",
OutputValue: \"arn:aws:eks:us-east-1:738054984624:cluster/prototype\"
},
{
ExportName: \"eksctl-prototype-cluster::FargatePodExecutionRoleARN\",
OutputKey: \"FargatePodExecutionRoleARN\",
OutputValue: \"arn:aws:iam::738054984624:role/eksctl-prototype-cluster-FargatePodExecutionRole-ZUY6UD2QGJSV\"
}
],
RollbackConfiguration: {
},
StackId: \"arn:aws:cloudformation:us-east-1:738054984624:stack/eksctl-prototype-cluster/35ae2460-255e-11ea-b30f-0a4f04019892\",
StackName: \"eksctl-prototype-cluster\",
StackStatus: \"CREATE_COMPLETE\",
Tags: [
{
Key: \"alpha.eksctl.io/cluster-name\",
Value: \"prototype\"
},
{
Key: \"Owner\",
Value: \"SRE Team\"
},
{
Key: \"eksctl.cluster.k8s.io/v1alpha1/cluster-name\",
Value: \"prototype\"
},
{
Key: \"Team\",
Value: \"DevOps Team\"
},
{
Key: \"Creator\",
Value: \"Eduardo Valdes\"
}
]
}
Continue [Y/n]?: y
Function [display_nodes]:
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
ip-192-168-52-90.ec2.internal Ready <none> 106s v1.14.7-eks-1861c5 192.168.52.90 3.82.219.54 Amazon Linux 2 4.14.146-119.123.amzn2.x86_64 docker://18.6.1
ip-192-168-66-209.ec2.internal Ready <none> 2m1s v1.14.7-eks-1861c5 192.168.66.209 3.87.238.174 Amazon Linux 2 4.14.146-119.123.amzn2.x86_64 docker://18.6.1
Continue [Y/n]?: y
Function [create_autoscaler]:
serviceaccount/cluster-autoscaler created
clusterrole.rbac.authorization.k8s.io/cluster-autoscaler created
role.rbac.authorization.k8s.io/cluster-autoscaler created
clusterrolebinding.rbac.authorization.k8s.io/cluster-autoscaler created
rolebinding.rbac.authorization.k8s.io/cluster-autoscaler created
deployment.apps/cluster-autoscaler created
Continue [Y/n]?: y
Function [autoscaler_group]:
Auto-Scaling Group Name: eks-9cb798f5-9fda-4fbf-09e1-e1773d132961
Continue [Y/n]?: y
Function [disable_eviction]:
deployment.apps/cluster-autoscaler annotated
Continue [Y/n]?: y
Function [autoscaler_version]:
deployment.apps/cluster-autoscaler image updated
Continue [Y/n]?: y
Function [autoscaler_update]:
Modify these lines:
- --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/prototype
Append these lines:
- --balance-similar-node-groups
- --skip-nodes-with-system-pods=false
deployment.apps/cluster-autoscaler edited
Continue [Y/n]?: y
Function [inspect_autoscaler]:
Continue [Y/n]?: y
Function [configmap_awsauth]:
/tmp/devops/prototype/aws-auth-cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: arn:aws:iam::738054984624:role/eksctl-prototype-nodegroup-devops-NodeInstanceRole-EAECB0XT8T2L
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
configmap/aws-auth configured
Name: aws-auth
Namespace: kube-system
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{\"apiVersion\":\"v1\",\"data\":{\"mapRoles\":\"- rolearn: arn:aws:iam::738054984624:role/eksctl-prototype-nodegroup-devops-NodeInstanceRole-EAECB0XT...
Data
====
mapRoles:
----
- rolearn: arn:aws:iam::738054984624:role/eksctl-prototype-nodegroup-devops-NodeInstanceRole-EAECB0XT8T2L
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
Events: <none>
Continue [Y/n]?: y
Function [metricshelper_deploy]:
clusterrole.rbac.authorization.k8s.io/cni-metrics-helper created
serviceaccount/cni-metrics-helper created
clusterrolebinding.rbac.authorization.k8s.io/cni-metrics-helper created
deployment.extensions/cni-metrics-helper created
Continue [Y/n]?: y
Function [metricshelper_policy]:
{
\"Version\": \"2012-10-17\",
\"Statement\": [
{
\"Effect\": \"Allow\",
\"Action\": \"cloudwatch:PutMetricData\",
\"Resource\": \"*\"
}
]
}
An error occurred (EntityAlreadyExists) when calling the CreatePolicy operation: A policy called CNIMetricsHelperPolicy--prototype-devops already exists. Duplicate names are not allowed.
Continue [Y/n]?: y
Function [metricshelper_rolepolicies]:
Continue [Y/n]?: y
Function [instance_roleupdate]:
{
\"IamInstanceProfileAssociation\": {
\"AssociationId\": \"iip-assoc-010afe541671c251e\",
\"InstanceId\": \"i-034c200337e766387\",
\"IamInstanceProfile\": {
\"Arn\": \"arn:aws:iam::738054984624:instance-profile/eks-9cb798f5-9fda-4fbf-09e1-e1773d132961\",
\"Id\": \"AIPAZZP26542MDVOITYAD\"
},
\"State\": \"associated\"
}
}
{
\"IamInstanceProfileAssociation\": {
\"AssociationId\": \"iip-assoc-044c76b85b2cf39d0\",
\"InstanceId\": \"i-074e0f0d3ab1e6dab\",
\"IamInstanceProfile\": {
\"Arn\": \"arn:aws:iam::738054984624:instance-profile/eks-9cb798f5-9fda-4fbf-09e1-e1773d132961\",
\"Id\": \"AIPAZZP26542MDVOITYAD\"
},
\"State\": \"associated\"
}
}
Continue [Y/n]?: y
Function [cloudwatch_namespace]:
namespace/amazon-cloudwatch created
Continue [Y/n]?: y
Function [cwagent_fluentd]:
namespace/amazon-cloudwatch unchanged
serviceaccount/cloudwatch-agent created
clusterrole.rbac.authorization.k8s.io/cloudwatch-agent-role created
clusterrolebinding.rbac.authorization.k8s.io/cloudwatch-agent-role-binding created
configmap/cwagentconfig created
daemonset.apps/cloudwatch-agent created
configmap/cluster-info created
serviceaccount/fluentd created
clusterrole.rbac.authorization.k8s.io/fluentd-role created
clusterrolebinding.rbac.authorization.k8s.io/fluentd-role-binding created
configmap/fluentd-config created
daemonset.apps/fluentd-cloudwatch created
Continue [Y/n]?: y
Function [display_pods]: amazon-cloudwatch
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
cloudwatch-agent-t6nxd 0/1 ContainerCreating 0 2s <none> ip-192-168-52-90.ec2.internal <none> <none>
fluentd-cloudwatch-kx4k4 0/1 Init:0/2 0 1s <none> ip-192-168-52-90.ec2.internal <none> <none>
cloudwatch-agent-k2pqs 0/1 ContainerCreating 0 2s <none> ip-192-168-66-209.ec2.internal <none> <none>
fluentd-cloudwatch-p5t8x 0/1 Init:0/2 0 1s <none> ip-192-168-66-209.ec2.internal <none> <none>
Continue [Y/n]?: y
Function [cwagent_serviceaccount]:
serviceaccount/cloudwatch-agent unchanged
clusterrole.rbac.authorization.k8s.io/cloudwatch-agent-role unchanged
clusterrolebinding.rbac.authorization.k8s.io/cloudwatch-agent-role-binding unchanged
Continue [Y/n]?: y
Function [configmap_cwagent]:
/tmp/devops/prototype/cwagent-configmap.yaml
configmap/cwagentconfig configured
Continue [Y/n]?: y
Function [cwagent_daemonset]:
daemonset.apps/cloudwatch-agent unchanged
Continue [Y/n]?: y
Function [cluster_podname]: amazon-cloudwatch
Continue [Y/n]?: y
Describing Pod: cloudwatch-agent-k2pqs
Function [describe_podname]: cloudwatch-agent-k2pqs
Name: cloudwatch-agent-k2pqs
Namespace: amazon-cloudwatch
Priority: 0
Node: ip-192-168-66-209.ec2.internal/192.168.66.209
Start Time: Mon, 23 Dec 2019 01:46:12 -0700
Labels: controller-revision-hash=7cb45c7f8c
name=cloudwatch-agent
pod-template-generation=1
Annotations: kubernetes.io/psp: eks.privileged
Status: Running
IP: 192.168.65.184
IPs: <none>
Controlled By: DaemonSet/cloudwatch-agent
Containers:
cloudwatch-agent:
Container ID: docker://ddd8e75d6f1cbc17f6c7a7eaad9b16fb148883139f1c5a38b072842d1fd171a9
Image: amazon/cloudwatch-agent:1.230621.0
Image ID: docker-pullable://amazon/cloudwatch-agent@sha256:877106acbc56e747ebe373548c88cd37274f666ca11b5c782211db4c5c7fb64b
Port: <none>
Host Port: <none>
State: Running
Started: Mon, 23 Dec 2019 01:46:15 -0700
Ready: True
Restart Count: 0
Limits:
cpu: 200m
memory: 200Mi
Requests:
cpu: 200m
memory: 200Mi
Environment:
HOST_IP: (v1:status.hostIP)
HOST_NAME: (v1:spec.nodeName)
K8S_NAMESPACE: amazon-cloudwatch (v1:metadata.namespace)
CI_VERSION: k8s/1.0.1
Mounts:
/dev/disk from devdisk (ro)
/etc/cwagentconfig from cwagentconfig (rw)
/rootfs from rootfs (ro)
/sys from sys (ro)
/var/lib/docker from varlibdocker (ro)
/var/run/docker.sock from dockersock (ro)
/var/run/secrets/kubernetes.io/serviceaccount from cloudwatch-agent-token-q2l8q (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
cwagentconfig:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: cwagentconfig
Optional: false
rootfs:
Type: HostPath (bare host directory volume)
Path: /
HostPathType:
dockersock:
Type: HostPath (bare host directory volume)
Path: /var/run/docker.sock
HostPathType:
varlibdocker:
Type: HostPath (bare host directory volume)
Path: /var/lib/docker
HostPathType:
sys:
Type: HostPath (bare host directory volume)
Path: /sys
HostPathType:
devdisk:
Type: HostPath (bare host directory volume)
Path: /dev/disk/
HostPathType:
cloudwatch-agent-token-q2l8q:
Type: Secret (a volume populated by a Secret)
SecretName: cloudwatch-agent-token-q2l8q
Optional: false
QoS Class: Guaranteed
Node-Selectors: <none>
Tolerations: node.kubernetes.io/disk-pressure:NoSchedule
node.kubernetes.io/memory-pressure:NoSchedule
node.kubernetes.io/not-ready:NoExecute
node.kubernetes.io/pid-pressure:NoSchedule
node.kubernetes.io/unreachable:NoExecute
node.kubernetes.io/unschedulable:NoSchedule
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 6s default-scheduler Successfully assigned amazon-cloudwatch/cloudwatch-agent-k2pqs to ip-192-168-66-209.ec2.internal
Normal Pulling 5s kubelet, ip-192-168-66-209.ec2.internal Pulling image \"amazon/cloudwatch-agent:1.230621.0\"
Normal Pulled 3s kubelet, ip-192-168-66-209.ec2.internal Successfully pulled image \"amazon/cloudwatch-agent:1.230621.0\"
Normal Created 3s kubelet, ip-192-168-66-209.ec2.internal Created container cloudwatch-agent
Normal Started 3s kubelet, ip-192-168-66-209.ec2.internal Started container cloudwatch-agent
Continue [Y/n]?: y
Displaying Pod's Log: cloudwatch-agent-k2pqs
2019/12/23 08:46:15 I! I! Detected the instance is EC2
2019/12/23 08:46:15 Reading json config file path: /opt/aws/amazon-cloudwatch-agent/bin/default_linux_config.json ...
/opt/aws/amazon-cloudwatch-agent/bin/default_linux_config.json does not exist or cannot read. Skipping it.
2019/12/23 08:46:15 Reading json config file path: /etc/cwagentconfig/..2019_12_23_08_46_12.683569077/cwagentconfig.json ...
2019/12/23 08:46:15 Find symbolic link /etc/cwagentconfig/..data
2019/12/23 08:46:15 Find symbolic link /etc/cwagentconfig/cwagentconfig.json
2019/12/23 08:46:15 Reading json config file path: /etc/cwagentconfig/cwagentconfig.json ...
Valid Json input schema.
No csm configuration found.
No metric configuration found.
Configuration validation first phase succeeded
2019/12/23 08:46:15 I! Config has been translated into TOML /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml
2019/12/23 08:46:15 I! AmazonCloudWatchAgent Version 1.230621.0.
2019-12-23T08:46:15Z I! Starting AmazonCloudWatchAgent (version 1.230621.0)
2019-12-23T08:46:15Z I! Loaded outputs: cloudwatchlogs
2019-12-23T08:46:15Z I! Loaded inputs: cadvisor k8sapiserver
2019-12-23T08:46:15Z I! Tags enabled:
2019-12-23T08:46:15Z I! Agent Config: Interval:1m0s, Quiet:false, Hostname:\"ip-192-168-66-209.ec2.internal\", Flush Interval:1s
2019-12-23T08:46:15Z I! Cannot get the leader config map: configmaps \"cwagent-clusterleader\" not found, try to create the config map...
2019-12-23T08:46:15Z I! configMap: &ConfigMap{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:cwagent-clusterleader,GenerateName:,Namespace:amazon-cloudwatch,SelfLink:/api/v1/namespaces/amazon-cloudwatch/configmaps/cwagent-clusterleader,UID:ae416aad-2560-11ea-83e0-0a20636a20d3,ResourceVersion:1342,Generation:0,CreationTimestamp:2019-12-23 08:46:15 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,},Data:map[string]string{},BinaryData:map[string][]byte{},}, err: <nil>
2019-12-23T08:46:15Z I! k8sapiserver OnStartedLeading: ip-192-168-66-209.ec2.internal
Continue [Y/n]?: y
Function [create_namespace]: prometheus
namespace/prometheus created
Continue [Y/n]?: y
Function [service_account]: tiller
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
serviceaccount/tiller created
clusterrolebinding.rbac.authorization.k8s.io/tiller created
$HELM_HOME has been configured at /Users/prototype/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
NAME READY UP-TO-DATE AVAILABLE AGE
tiller-deploy 1/1 1 1 61s
Name: tiller-deploy
Namespace: kube-system
CreationTimestamp: Mon, 23 Dec 2019 01:46:35 -0700
Labels: app=helm
name=tiller
Annotations: deployment.kubernetes.io/revision: 1
Selector: app=helm,name=tiller
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=helm
name=tiller
Service Account: tiller
Containers:
tiller:
Image: gcr.io/kubernetes-helm/tiller:v2.16.1
Ports: 44134/TCP, 44135/TCP
Host Ports: 0/TCP, 0/TCP
Liveness: http-get http://:44135/liveness delay=1s timeout=1s period=10s #success=1 #failure=3
Readiness: http-get http://:44135/readiness delay=1s timeout=1s period=10s #success=1 #failure=3
Environment:
TILLER_NAMESPACE: kube-system
TILLER_HISTORY_MAX: 300
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Available True MinimumReplicasAvailable
Progressing True NewReplicaSetAvailable
OldReplicaSets: <none>
NewReplicaSet: tiller-deploy-54c98f988f (1/1 replicas created)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ScalingReplicaSet 61s deployment-controller Scaled up replica set tiller-deploy-54c98f988f to 1
Continue [Y/n]?: y
Function [setup_monitoring]: prometheus
2019/12/23 01:47:38 Warning: Merging destination map for chart 'prometheus-node-exporter'. Overwriting table item 'extraArgs', with non table value: [--collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/) --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$]
2019/12/23 01:47:38 Warning: Merging destination map for chart 'prometheus-node-exporter'. Overwriting table item 'extraArgs', with non table value: [--collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/) --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$]
NAME: prometheus
LAST DEPLOYED: Mon Dec 23 01:47:40 2019
NAMESPACE: prometheus
STATUS: DEPLOYED
RESOURCES:
==> v1/Alertmanager
NAME AGE
prometheus-prometheus-oper-alertmanager 34s
==> v1/ClusterRole
NAME AGE
prometheus-grafana-clusterrole 34s
prometheus-prometheus-oper-alertmanager 34s
prometheus-prometheus-oper-operator 34s
prometheus-prometheus-oper-operator-psp 34s
prometheus-prometheus-oper-prometheus 34s
prometheus-prometheus-oper-prometheus-psp 34s
psp-prometheus-kube-state-metrics 34s
==> v1/ClusterRoleBinding
NAME AGE
prometheus-grafana-clusterrolebinding 34s
prometheus-prometheus-oper-alertmanager 34s
prometheus-prometheus-oper-operator 34s
prometheus-prometheus-oper-operator-psp 34s
prometheus-prometheus-oper-prometheus 34s
prometheus-prometheus-oper-prometheus-psp 34s
psp-prometheus-kube-state-metrics 34s
==> v1/ConfigMap
NAME AGE
prometheus-grafana 34s
prometheus-grafana-config-dashboards 34s
prometheus-grafana-test 34s
prometheus-prometheus-oper-apiserver 34s
prometheus-prometheus-oper-controller-manager 34s
prometheus-prometheus-oper-etcd 34s
prometheus-prometheus-oper-grafana-datasource 34s
prometheus-prometheus-oper-k8s-resources-cluster 34s
prometheus-prometheus-oper-k8s-resources-namespace 34s
prometheus-prometheus-oper-k8s-resources-pod 34s
prometheus-prometheus-oper-k8s-resources-workload 34s
prometheus-prometheus-oper-k8s-resources-workloads-namespace 34s
prometheus-prometheus-oper-kubelet 34s
prometheus-prometheus-oper-node-cluster-rsrc-use 34s
prometheus-prometheus-oper-node-rsrc-use 34s
prometheus-prometheus-oper-nodes 34s
prometheus-prometheus-oper-persistentvolumesusage 34s
prometheus-prometheus-oper-pods 34s
prometheus-prometheus-oper-prometheus 34s
prometheus-prometheus-oper-prometheus-remote-write 34s
prometheus-prometheus-oper-proxy 34s
prometheus-prometheus-oper-scheduler 34s
prometheus-prometheus-oper-statefulset 34s
==> v1/Deployment
NAME AGE
prometheus-grafana 34s
prometheus-kube-state-metrics 34s
prometheus-prometheus-oper-operator 34s
==> v1/Pod(related)
NAME AGE
prometheus-grafana-5c97446694-9bhc7 34s
prometheus-kube-state-metrics-5ffdf76ddd-f8pgx 34s
prometheus-prometheus-node-exporter-9nbsp 34s
prometheus-prometheus-node-exporter-cnxtz 34s
prometheus-prometheus-oper-operator-6d59dcfb57-2crvb 34s
==> v1/Prometheus
NAME AGE
prometheus-prometheus-oper-prometheus 34s
==> v1/PrometheusRule
NAME AGE
prometheus-prometheus-oper-alertmanager.rules 34s
prometheus-prometheus-oper-etcd 34s
prometheus-prometheus-oper-general.rules 34s
prometheus-prometheus-oper-k8s.rules 34s
prometheus-prometheus-oper-kube-apiserver.rules 34s
prometheus-prometheus-oper-kube-prometheus-node-recording.rules 34s
prometheus-prometheus-oper-kube-scheduler.rules 34s
prometheus-prometheus-oper-kubernetes-absent 34s
prometheus-prometheus-oper-kubernetes-apps 34s
prometheus-prometheus-oper-kubernetes-resources 34s
prometheus-prometheus-oper-kubernetes-storage 34s
prometheus-prometheus-oper-kubernetes-system 34s
prometheus-prometheus-oper-node-exporter 34s
prometheus-prometheus-oper-node-exporter.rules 34s
prometheus-prometheus-oper-node-network 34s
prometheus-prometheus-oper-node-time 34s
prometheus-prometheus-oper-node.rules 34s
prometheus-prometheus-oper-prometheus 34s
prometheus-prometheus-oper-prometheus-operator 34s
==> v1/Role
NAME AGE
prometheus-grafana-test 34s
==> v1/RoleBinding
NAME AGE
prometheus-grafana-test 34s
==> v1/Secret
NAME AGE
alertmanager-prometheus-prometheus-oper-alertmanager 34s
prometheus-grafana 34s
==> v1/Service
NAME AGE
prometheus-grafana 34s
prometheus-kube-state-metrics 34s
prometheus-prometheus-node-exporter 34s
prometheus-prometheus-oper-alertmanager 34s
prometheus-prometheus-oper-coredns 34s
prometheus-prometheus-oper-kube-controller-manager 34s
prometheus-prometheus-oper-kube-etcd 34s
prometheus-prometheus-oper-kube-proxy 34s
prometheus-prometheus-oper-kube-scheduler 34s
prometheus-prometheus-oper-operator 34s
prometheus-prometheus-oper-prometheus 34s
==> v1/ServiceAccount
NAME AGE
prometheus-grafana 34s
prometheus-grafana-test 34s
prometheus-kube-state-metrics 34s
prometheus-prometheus-node-exporter 34s
prometheus-prometheus-oper-alertmanager 34s
prometheus-prometheus-oper-operator 34s
prometheus-prometheus-oper-prometheus 34s
==> v1/ServiceMonitor
NAME AGE
prometheus-prometheus-oper-alertmanager 34s
prometheus-prometheus-oper-apiserver 34s
prometheus-prometheus-oper-coredns 34s
prometheus-prometheus-oper-grafana 34s
prometheus-prometheus-oper-kube-controller-manager 34s
prometheus-prometheus-oper-kube-etcd 34s
prometheus-prometheus-oper-kube-proxy 34s
prometheus-prometheus-oper-kube-scheduler 34s
prometheus-prometheus-oper-kube-state-metrics 34s
prometheus-prometheus-oper-kubelet 34s
prometheus-prometheus-oper-node-exporter 34s
prometheus-prometheus-oper-operator 34s
prometheus-prometheus-oper-prometheus 34s
==> v1beta1/ClusterRole
NAME AGE
prometheus-kube-state-metrics 34s
psp-prometheus-prometheus-node-exporter 34s
==> v1beta1/ClusterRoleBinding
NAME AGE
prometheus-kube-state-metrics 34s
psp-prometheus-prometheus-node-exporter 34s
==> v1beta1/DaemonSet
NAME AGE
prometheus-prometheus-node-exporter 34s
==> v1beta1/MutatingWebhookConfiguration
NAME AGE
prometheus-prometheus-oper-admission 34s
==> v1beta1/PodSecurityPolicy
NAME AGE
prometheus-grafana 34s
prometheus-grafana-test 34s
prometheus-kube-state-metrics 34s
prometheus-prometheus-node-exporter 34s
prometheus-prometheus-oper-alertmanager 34s
prometheus-prometheus-oper-operator 34s
prometheus-prometheus-oper-prometheus 34s
==> v1beta1/Role
NAME AGE
prometheus-grafana 34s
==> v1beta1/RoleBinding
NAME AGE
prometheus-grafana 34s
==> v1beta1/ValidatingWebhookConfiguration
NAME AGE
prometheus-prometheus-oper-admission 34s
NOTES:
The Prometheus Operator has been installed. Check its status by running:
kubectl --namespace prometheus get pods -l \"release=prometheus\"
Visit https://github.com/coreos/prometheus-operator for instructions on how
to create & configure Alertmanager and Prometheus instances using the Operator.
NAME READY STATUS RESTARTS AGE
prometheus-grafana-5c97446694-9bhc7 2/2 Running 0 2m34s
prometheus-prometheus-node-exporter-9nbsp 1/1 Running 0 2m34s
prometheus-prometheus-node-exporter-cnxtz 1/1 Running 0 2m34s
prometheus-prometheus-oper-operator-6d59dcfb57-2crvb 2/2 Running 0 2m34s
Continue [Y/n]?: y
Function [monitoring_services]:
{
\"apiVersion\": \"v1\",
\"items\": [
{
\"apiVersion\": \"v1\",
\"kind\": \"Service\",
\"metadata\": {
\"creationTimestamp\": \"2019-12-23T08:48:24Z\",
\"labels\": {
\"operated-alertmanager\": \"true\"
},
\"name\": \"alertmanager-operated\",
\"namespace\": \"prometheus\",
\"ownerReferences\": [
{
\"apiVersion\": \"monitoring.coreos.com/v1\",
\"kind\": \"Alertmanager\",
\"name\": \"prometheus-prometheus-oper-alertmanager\",
\"uid\": \"f78a4893-2560-11ea-83e0-0a20636a20d3\"
}
],
\"resourceVersion\": \"2013\",
\"selfLink\": \"/api/v1/namespaces/prometheus/services/alertmanager-operated\",
\"uid\": \"fb14a3bd-2560-11ea-a71a-02287af92a37\"
},
\"spec\": {
\"clusterIP\": \"None\",
\"ports\": [
{
\"name\": \"web\",
\"port\": 9093,
\"protocol\": \"TCP\",
\"targetPort\": 9093
},
{
\"name\": \"mesh-tcp\",
\"port\": 9094,
\"protocol\": \"TCP\",
\"targetPort\": 9094
},
{
\"name\": \"mesh-udp\",
\"port\": 9094,
\"protocol\": \"UDP\",
\"targetPort\": 9094
}
],
\"selector\": {
\"app\": \"alertmanager\"
},
\"sessionAffinity\": \"None\",
\"type\": \"ClusterIP\"
},
\"status\": {
\"loadBalancer\": {}
}
},
{
\"apiVersion\": \"v1\",
\"kind\": \"Service\",
\"metadata\": {
\"creationTimestamp\": \"2019-12-23T08:48:18Z\",
\"labels\": {
\"app\": \"grafana\",
\"chart\": \"grafana-3.8.19\",
\"heritage\": \"Tiller\",
\"release\": \"prometheus\"
},
\"name\": \"prometheus-grafana\",
\"namespace\": \"prometheus\",
\"resourceVersion\": \"1866\",
\"selfLink\": \"/api/v1/namespaces/prometheus/services/prometheus-grafana\",
\"uid\": \"f783a5ef-2560-11ea-83e0-0a20636a20d3\"
},
\"spec\": {
\"clusterIP\": \"10.100.200.160\",
\"ports\": [
{
\"name\": \"service\",
\"port\": 80,
\"protocol\": \"TCP\",
\"targetPort\": 3000
}
],
\"selector\": {
\"app\": \"grafana\",
\"release\": \"prometheus\"
},
\"sessionAffinity\": \"None\",
\"type\": \"ClusterIP\"
},
\"status\": {
\"loadBalancer\": {}
}
},
{
\"apiVersion\": \"v1\",
\"kind\": \"Service\",
\"metadata\": {
\"annotations\": {
\"prometheus.io/scrape\": \"true\"
},
\"creationTimestamp\": \"2019-12-23T08:48:18Z\",
\"labels\": {
\"app.kubernetes.io/instance\": \"prometheus\",
\"app.kubernetes.io/managed-by\": \"Tiller\",
\"app.kubernetes.io/name\": \"kube-state-metrics\",
\"helm.sh/chart\": \"kube-state-metrics-2.3.1\"
},
\"name\": \"prometheus-kube-state-metrics\",
\"namespace\": \"prometheus\",
\"resourceVersion\": \"1860\",
\"selfLink\": \"/api/v1/namespaces/prometheus/services/prometheus-kube-state-metrics\",
\"uid\": \"f781b42d-2560-11ea-83e0-0a20636a20d3\"
},
\"spec\": {
\"clusterIP\": \"10.100.234.122\",
\"ports\": [
{
\"name\": \"http\",
\"port\": 8080,
\"protocol\": \"TCP\",
\"targetPort\": 8080
}
],
\"selector\": {
\"app.kubernetes.io/instance\": \"prometheus\",
\"app.kubernetes.io/name\": \"kube-state-metrics\"
},