Skip to content

alex-zige/rosa-ssm-agent-daemonset-installer

 
 

Repository files navigation

node-configuration-daemonset

This project shows how you can install the SSM agent onto ROSA clusters using a Kubernetes DaemonSet.

This project was heavily inspired by Jeremy Cowan's SSM Agent Daemonset Installer Project.

Installation instructions

  1. Add the AmazonSSMManagedInstanceCore policy the the EC2 Instance Profiles of the EC2 Instances.
aws iam attach-role-policy --role-name ManagedOpenShift-ControlPlane-Role --policy-arn arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
aws iam attach-role-policy --role-name ManagedOpenShift-Worker-Role --policy-arn arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
  1. Create namespace

oc create namespace node-configuration-daemonset
  1. Add Privileged SCC to user ssm-agent-installer
oc adm policy add-scc-to-user privileged -z ssm-agent-installer -n node-configuration-daemonset
  1. Apply the manifest:
oc apply -f https://raw.githubusercontent.com/scouturier/rosa-ssm-agent-daemonset-installer/main/setup.yaml

Verify installation

You can verify that the installation was successful by looking at the logs of a DaemonSet pod. If the installation was successfull, the last line in the log file will read Success otherwise it will read Fail. The nodes will also appears as managed instances in the SSM console if the installation was successful.

Based on the EKS SSM Agent deployment: https://github.com/aws-samples/ssm-agent-daemonset-installer

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.5%
  • Dockerfile 4.5%