js |
JavaScriptタグが付けられた新着投稿 - Qiita |
[TypeScript] タグ付きテンプレートの書き方 1. 基礎編 |
https://qiita.com/sugoroku_y/items/af674c288a681b5f83eb
|
javascript |
2023-04-24 03:51:33 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Ruby初学者の私が2週間前の自分に伝えたいこと |
https://qiita.com/kotekan/items/a2f707fe689b7c3a2b53
|
progate |
2023-04-24 03:49:43 |
技術ブログ |
Developers.IO |
【レポート】AWS Summit Tokyo 2023:デジタル化推進を支える住友生命のインフラ戦略 ~基幹系システムでの AWS 大阪リージョン採用~ #AWSSummit |
https://dev.classmethod.jp/articles/aws-summit-tokyo-2023-sumitomo-life-osaka-region/
|
awssummit |
2023-04-23 18:33:04 |
海外TECH |
MakeUseOf |
Does Your Screen Goes Black When Pressing Alt + Tab on Windows? Here’s How to Fix It |
https://www.makeuseof.com/fix-black-screen-alt-tab-windows/
|
windows |
2023-04-23 18:15:16 |
海外TECH |
DEV Community |
Costly EKS Cluster Set Up? AWS to the rescue! |
https://dev.to/aws-builders/costly-eks-cluster-set-up-aws-to-the-rescue-2o4d
|
Costly EKS Cluster Set Up AWS to the rescue StorylineThe goal was to do an automated Terraform Kubernetes Deployment I eventually provisioned a production grade EKS Cluster using Terraform EKS modules and it created other AWS resources to be intergrated along with it As the beginner that I was I left the cluster running for days hoping to sort out deploying different types of microservice applications to the same cluster then finally clean up The total bill accrued after a while was jaw dropping and problematic but AWS came to my rescue and sorted it all out AimThis walks you through the process of creating a standard EKS Cluster using Terraform modules in AWS EKS Cluster Creation and steps to request a total cost bills waiver from AWS in AWS Bills Waiver The waiver process is useful for other workloads and not just this cluster set up AWS EKS Cluster Creation Essentials An AWS Account create a free tier here Be logged in an IAM user with Admin priviledges secret and access keys Ubuntu Host OS Local PC or Virtual Machine VS code or any IDE of your choice An S bucket to store the terraform state files remotelyBasic Linux Terminal use Installations Install latest Terraform on the command line sudo apt update amp amp apt upgrade ysudo apt install y gnupg software properties common curlcurl fsSL sudo apt key add sudo apt add repository deb arch amd lsb release cs main sudo apt updatesudo apt install terraformterraform vInstall the Terraform extension by Anton Kulikov on VS code for syntax highlights and efficiency Install AWS CLI sudo apt get updatesudo apt get install y less curl unzipcurl o awscliv zip unzip q awscliv zipsudo aws installaws versionConfigure AWS CLI with aws configure command fill up outputs with secret and access keys previously created from IAM useradd us east as region Test configuration details with aws configure listNo need to create environment variables as runnng env grep AWS will not recognize the enviroment variables set in another terminal tab hence aws configure is appropriate for global setup export AWS ACCESS KEY ID YOUR AWS ACCESS KEY ID export AWS SECRET ACCESS KEY YOUR AWS SECRET ACCESS KEY export AWS DEFAULT REGION us east Install Kubectl as the command line tool that interacts with the Kubernetes Cluster sudo apt get update ysudo apt get install y apt transport https ca certificates curlcurl fsSLo usr share keyrings kubernetes archive keyring gpg echo deb signed by usr share keyrings kubernetes archive keyring gpg kubernetes xenial main sudo tee etc apt sources list d kubernetes listsudo apt get update ysudo apt get install y kubectlkubectl version client Optiona Install Graphviz to visualize the terraform plan process sudo apt install graphviz ArchitectureThis shows the summarized version of how the cluster would be formed via the terraform module more like a group of interwoven resources used together Other resources such as VPC Security groups NAT and Internet gateways for routing traffic from inside the private subnets and the internet respectively etc would be created alongside it This set up has the VPC created with three Public and three Private Subnets which tallies with the three availabilty zones present in us east region The values in the Terraform Configuration aren t fixed and can be changed according to individual s preference but I ll suggest that beginners follow through these exact values in order to eradicate bugs and avoidable errors Procedures Navigate to preferred working directory by git cloning my repository git clone then cd terraform eks creation terraform to switch directory NoteEnsure your present working directory is ks microservices deployment via CICD terraform terraform eks creation terraformConfirm with the command pwd All required Terraform files tf are present in the folder on my repo you can create a folder for yours to manually write the tf files if you did not clone the repository All required tf filesThe majority configuration of the module used was gotten from terraform aws modules eks in Terraform s Registry You can add more switch the non required inputs or decide which preferred resources or versions you want outside the ones I already chose in my repository Create a providers tf file to recognize the specific terraform provider plugins that directly interact with AWS service provider aws region var region Create a s backend tf file to store remote state files in an external S bucket as this ensures multiple users or CI server gets the latest state data before running terraform Its also more secure gt PS gt gt Please ensure the S bucket is created prior to terraform being initialized terraform required version gt backend s bucket var S bucket name key var bucket key region var region Create a variables tf file to declare all variables to be used in this project BACKEND variable S bucket name description name of S bucket for remote backend storage variable bucket key description It s the file path inside the bucket variable region description The region of cluster deployment VPC variable vpc cidr block description ip range for vpc variable private subnet cidr blocks description ip range for private subnet variable public subnet cidr blocks description ip range for public subnets Create a vpc tf file for the configurations of the Virtual Private Environment the EKS cluster would be created in DATA SOURCE By state data aws availability zones available module wandeks vpc source terraform aws modules vpc aws version name wandeks vpc cidr var vpc cidr block private subnets var private subnet cidr blocks public subnets var public subnet cidr blocks azs data aws availability zones available names enable nat gateway true single nat gateway true enable dns hostnames true tags kubernetes io cluster wandeks eks cluster shared public subnet tags kubernetes io cluster wandeks eks cluster shared kubernetes io role elb private subnet tags kubernetes io cluster wandeks eks cluster shared kubernetes io role internal elb Create an outputs tf file to share data between Terraform configurations and external tools Outputs are also the only way to share data between child module and root module of the configuration output cluster id description EKS cluster ID value module eks cluster id output cluster name description Amazon Web Service EKS Cluster Name value module eks cluster name output cluster endpoint description Endpoint for Amazon Web Service EKS value module eks cluster endpoint output region description Amazon Web Service EKS Cluster region value var region output cluster security group id description Security group ID for the Amazon Web Service EKS Cluster value module eks cluster security group id output cluster ca certificate value module eks cluster certificate authority data Create an eks cluster tf file which specifies the Terraform Kubernetes Provider in order to create Kubernetes objects the module configurations the partly managed nodes groups node instances to be created in the cluster etc provider to communicate with Kubernetes resources provider kubernetes host module eks cluster endpoint end point of ks API server token data aws eks cluster auth wandeks eks cluster token cluster ca certificate basedecode module eks cluster certificate authority data Query data data aws eks cluster wandeks eks cluster name module eks cluster id data aws eks cluster auth wandeks eks cluster name module eks cluster name module eks source terraform aws modules eks aws version cluster name wandeks eks cluster cluster version subnet ids module wandeks vpc private subnets vpc id module wandeks vpc vpc id cluster endpoint public access true tags environment development application wandeks eks managed node groups one min size max size desired size instance types var instance type Finally Create a terraform tfvars file to input the variable values defined in variables tf file Herein lies the ranges for VPC CIDR block specific resources names etc Please ensure to input the absolute path for private and public key located in the HOST OS as mine is removed for security reasons This is a very sensitive file that shouldn t be pushed to version control S bucket name wandeks bucket bucket key cicd server state tfstate region us east key pair cicd server local public key location local private key location instance type t medium vpc cidr block public subnet cidr blocks private subnet cidr blocks Initialize the current working directory with terraform initTerraform init OutputNext terraform plan to preveiw the list of the desired state to be executed Terraform plan part OutputOptionally we can visualize the terraform plan process before finally creating the resources in a graph via terraform graph type plan dot Tsvg gt graph svg A graph svg file would be created that can abe viewed on your PC or via any svg viewing tool Next is terraform apply and patience because this process would take a little while Terraform apply OutputConsole Verification After a successful apply we can confirm the resources created on the AWS consoleValidate the cluster with kubectl via aws eks update kubeconfig name wandeks eks cluster and now the cluster is fully ready for interaction and deployments Please do remember to Clean up the infrastructure as the spend for this set up is costly Terraform makes this super easy by typing terraform delete If not proceed to the next section where I explain how I got my bills waived as a time occurence AWS Bills Waiver Steps Navigate to the AWS console and select support centre from the drop down listFigure Support Centre on web consoleEnsure Account amp Billing is ticked then proceed to Create CaseFigure Create Case in Account amp BillingFollow the option specifications in Figure below Figure Selecting Service and Category optionsFill the Subject Summary I recommend an honest breakdown of the events that lead to the cost build documents can be attached also Here is my description version here you can use it as a template Hello AWS Support team I am requesting your assistance with my recent AWS charges As a beginner to AWS processes I have incurred very high unexpected charges that I am not able to afford at this moment while setting up an EKS Cluster with modules and I am hoping to find a solution that will allow me to continue learning and using AWS services without experiencing any financial burden I understand that some of the charges may have been due to my lack of knowledge about AWS pricing and usage I have since taken steps to educate myself and ensure that I am aware of the free tier limits and best practices for minimizing costs and curbing hidden costs I would be very grateful if my account be waived off all the pending AWS charges on my account as a one time courtesy due to my status as a new user This would allow me to continue my learning journey with AWS without any worry about unexpected charges Thank you for your time and attention to this matter I appreciate your assistance in resolving this issue Select Web and you ll be contacted via chat with a wave off alongside few aws credits to clear future debts Depending on your location you can also select Phone provide your phone number and you ll be contacted by the team Thank you for coming on this journey with me and I hope I have been able to guide you in different ways with my experiences with AWS awesomeness Feel free to reach out in the comment section with doubts or questions as well as directly on twitter Cheers to a fruitful learning journey with AWS |
2023-04-23 18:10:03 |
ニュース |
BBC News - Home |
Emergency alert test fails to sound on some phones |
https://www.bbc.co.uk/news/uk-65367282?at_medium=RSS&at_campaign=KARANGA
|
people |
2023-04-23 18:05:16 |
ニュース |
BBC News - Home |
Brighton 0-0 Man Utd (6-7 on pens): Victor Lindelof scores winning penalty to set up first all-Manchester FA Cup final |
https://www.bbc.co.uk/sport/football/65347158?at_medium=RSS&at_campaign=KARANGA
|
Brighton Man Utd on pens Victor Lindelof scores winning penalty to set up first all Manchester FA Cup finalManchester United beat Brighton on penalties at Wembley to set up the first all Manchester FA Cup final |
2023-04-23 18:39:02 |
ニュース |
BBC News - Home |
Kenya cult deaths: 47 bodies found in investigation into 'starvation cult' |
https://www.bbc.co.uk/news/world-africa-65363585?at_medium=RSS&at_campaign=KARANGA
|
jesus |
2023-04-23 18:42:57 |
ニュース |
BBC News - Home |
FA Cup semi-final: Lindelof penalty sends Man Utd into FA Cup final |
https://www.bbc.co.uk/sport/av/football/65368031?at_medium=RSS&at_campaign=KARANGA
|
FA Cup semi final Lindelof penalty sends Man Utd into FA Cup finalWatch Victor Lindelof score the winning spot kick as Manchester United beat Brighton on penalties at Wembley to set up an FA Cup final with Manchester City |
2023-04-23 18:32:32 |
ニュース |
BBC News - Home |
Watch: Sportscene - Aberdeen v Rangers highlights |
https://www.bbc.co.uk/sport/av/football/65303215?at_medium=RSS&at_campaign=KARANGA
|
rangers |
2023-04-23 18:09:28 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
JR東海「どこ行く家康」キャンペーンが、“仲違い中”の静岡市を推す納得の理由 - News&Analysis |
https://diamond.jp/articles/-/321610
|
JR東海「どこ行く家康」キャンペーンが、“仲違い中の静岡市を推す納得の理由NewsampampAnalysisリニア中央新幹線の静岡工区を巡っては静岡県とJR東海で対立が続いているが、一方で「政冷経熱政治関係は冷え込んでいるが、経済関係は熱い」ともいえる状況が進んでいる。 |
2023-04-24 03:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
就活生の「ガクチカ」で、企業が本当に聞きたいこと - わが子の就活と向き合うための基礎知識 |
https://diamond.jp/articles/-/321841
|
就活生の「ガクチカ」で、企業が本当に聞きたいことわが子の就活と向き合うための基礎知識年卒の就活が佳境に入ってきた。 |
2023-04-24 03:52:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
なぜ家康は江戸城を嫌った?「信長・秀吉・家康」が好んだ城の特徴とは - ニュース3面鏡 |
https://diamond.jp/articles/-/321604
|
徳川家康 |
2023-04-24 03:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
トヨタ・プリウス、5thモデルは「燃費の呪縛」解いて“デザイン・走り”に個性【試乗記】 - CAR and DRIVER 注目カー・ファイル |
https://diamond.jp/articles/-/321782
|
caranddriver |
2023-04-24 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
男性42歳と52歳が「時間栄養学ダイエット」実践!お酒好き、外食が多い人の結果は… - ストレスフリーな食事健康術 岡田明子 |
https://diamond.jp/articles/-/321811
|
男性歳と歳が「時間栄養学ダイエット」実践お酒好き、外食が多い人の結果は…ストレスフリーな食事健康術岡田明子体内時計の働きに着目し、「何を食べたか」だけでなく「いつ食べたか」を重視する「時間栄養学」。 |
2023-04-24 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
2次会に誘われたけれど行きたくない!社会人なら何と答えるのが正解? - ニュースな本 |
https://diamond.jp/articles/-/321091
|
行きたくない |
2023-04-24 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
春闘での大幅ベアで高まるインフレの持続性、世界景気後退がリスク - 数字は語る |
https://diamond.jp/articles/-/321810
|
中小企業 |
2023-04-24 03:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
アップルとの提携話は「死の接吻」 - WSJ PickUp |
https://diamond.jp/articles/-/321808
|
wsjpickup |
2023-04-24 03:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ミニサイズのスナック菓子、米国で続々登場 - WSJ PickUp |
https://diamond.jp/articles/-/321807
|
wsjpickup |
2023-04-24 03:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
TSMCに逆風、対米投資は前途多難か - WSJ PickUp |
https://diamond.jp/articles/-/321806
|
wsjpickup |
2023-04-24 03:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
しつこく攻撃してくる「八つ当たり上司」をどうやって撃退するか? - 職場の嫌な人から自分を守る言葉の護身術 |
https://diamond.jp/articles/-/321052
|
八つ当たり |
2023-04-24 03:10:00 |
コメント
コメントを投稿