Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Replace wired example names with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-c-anderson committed Feb 25, 2021
1 parent 59e26d5 commit 5a02ce5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ spec:
spec:
containers:
- args:
- --cluster-name=ansible-eks-testcluster
- --cluster-name={{ eksexample_clustername }}
- --ingress-class=alb
image: amazon/aws-alb-ingress-controller:v2.1.0
livenessProbe:
Expand Down
12 changes: 6 additions & 6 deletions tasks/eks-container-insights.task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

- name: create amazon-cloudwatch namespace
delegate_to: "{{ EKSBastionInstancePublicIP }}"
community.kubernetes.k8s:
community.kubernetes.k8s:
state: present
definition:
apiVersion: v1
kind: Namespace
metadata:
name: amazon-cloudwatch

- name: get notegroups rolename
- name: get notegroups rolename
delegate_to: "{{ EKSBastionInstancePublicIP }}"
shell: >
aws cloudformation describe-stack-resources --region {{ eksexample_region }} --stack-name eksctl-{{ eksexample_clustername }}-nodegroup-ansible-eks-testcluster-linux-nodes \
shell: >
aws cloudformation describe-stack-resources --region {{ eksexample_region }} --stack-name eksctl-{{ eksexample_clustername }}-nodegroup-{{ eksexample_clustername }}-linux-nodes \
| jq -r '.StackResources[] | select(.ResourceType=="AWS::IAM::Role") | .PhysicalResourceId'
register: eks_nodegroup_role_name

Expand All @@ -37,7 +37,7 @@
state: present
apply: yes
definition: "{{ lookup('template', './k8s/container-insights/eks-container-insights-{{ item }}.manifest.yaml') | from_yaml }}"
loop:
loop:
- serviceaccount-cwagent
- serviceaccount-fluentd
- clusterrole-cwagent
Expand All @@ -48,4 +48,4 @@
- configmap-clusterinfo
- configmap-fluentdconfig
- deamonset-cwagent
- deamonset-fluentd
- deamonset-fluentd

0 comments on commit 5a02ce5

Please sign in to comment.