Create a new 1.13 or 1.14 EKS cluster called container-insights.
Enable IRSA:
eksctl utils associate-iam-oidc-provider \
--name container-insights \
--approve
| yum update -y nss | |
| yum install -y https://centos6.iuscommunity.org/ius-release.rpm | |
| perl -pi -e "s/enabled\s+=\s+1/enabled = 0/gi" /etc/yum.repos.d/ius.repo | |
| yum install -y --enablerepo=ius python36u python36u-libs python36u-pip | |
| ln -s /usr/bin/python3.6 /usr/bin/python3 | |
| ln -s /usr/bin/pip3.6 /usr/bin/pip3 | |
| pip3 install awscli --upgrade --user | |
| echo "# PATH for AWS CLI" >> ~/.bashrc | |
| echo "export PATH=~/.local/bin:$PATH" >> ~/.bashrc | |
| source ~/.bashrc |
| #!/bin/bash | |
| # ============================================================================= | |
| # Author: Chu-Siang Lai / chusiang (at) drx.tw | |
| # Filename: teams-chat-post-for-workflows.sh | |
| # Modified: 2024-07-22 11:44 (UTC+08:00) | |
| # Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows. | |
| # Reference: | |
| # | |
| # - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
| # - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/ |
| #!/usr/bin/groovy | |
| timestamps { | |
| podTemplate( | |
| label: 'jenkins-pipeline', | |
| inheritFrom: 'default', | |
| containers: [ | |
| containerTemplate(name: 'chrome', image: 'garunski/alpine-chrome:latest', command: 'cat', ttyEnabled: true) | |
| ] | |
| ) { |
| - prepare work | |
| a. make cm node can ssh to all nodes without password | |
| ssh-genkey, ssh-copy-id | |
| b. hostname mapping | |
| c. mysql server | |
| d. postgresql | |
| e. ntp | |
| systemctl disable chrony | |
| centos7 default enable chrony server, even enable ntpd, cuase chrony started, ntpd will not started | |
| this will cause CDH ntp error, so need to disable chrony. |