Skip to content

Instantly share code, notes, and snippets.

View yuhkih's full-sized avatar

Yuhki Hanada yuhkih

View GitHub Profile
$ oc new-project work-queue
$ echo 'apiVersion: batch/v1
kind: Job
metadata:
generateName: work-queue-
spec:
template:
spec:
containers:
# This will create a SSM bastion server.
# You can use this template with the following template which export necessary variables for this template.
#
# 1) rosa-awsfw-pnFW-saz.yaml Tested OK
# 2) rosa-awsfw-pFWn-saz.yaml
#
# Three Endpoints will be craeted in NATGW subnet.
#
# History
# 2023/01/13 yuhkih fix ImportValue
# The following will be deployed with this CF
# 1. Three subnets for each AZ. (Thins template is for single AZ)
# 2. AWS firewall deployed with a policy which allow all the domains listed on the ROSA document as prerequistes for egress.
#
# This template will create the following Network Firewall rules
#
# 1) singleaz-DomainAllow-RuleGroup based on ROSA requirments
# 2) singleaz-SplunkAllow-RuleGroup based on ROSA requiremnts (Splunk)
# 3) singleaz-DomainAllow-RuleGroup-For-Application For test perpose + RHOAM (based on blocked logs)
# 4) singleaz-IcmpAlert-RuleGroup This crates alert when someone uses ICMP ping in VPC.
@yuhkih
yuhkih / create-rosa-privatelink-cluster.sh
Last active January 16, 2023 15:26
Deploy Multi AZ ROSA cluster with PrivateLink
Description: This template deploys a VPC, with a pair of public and private subnets spread
across two Availability Zones. It deploys an internet gateway, with a default
route on the public subnets. It deploys a pair of NAT gateways (one in each AZ),
and default routes for them in the private subnets.
# -------------------------------------------
# ここはパラメーター
Parameters:
EnvironmentName:
Description: This template deploys a VPC, with a pair of public and private subnets spread
across two Availability Zones. It deploys an internet gateway, with a default
route on the public subnets. It deploys a pair of NAT gateways (one in each AZ),
and default routes for them in the private subnets.
# -------------------------------------------
# ここはパラメーター
Parameters:
EnvironmentName:
Description: This template deploys a VPC, with a pair of public and private subnets spread
across two Availability Zones. It deploys an internet gateway, with a default
route on the public subnets. It deploys a pair of NAT gateways (one in each AZ),
and default routes for them in the private subnets.
Parameters:
EnvironmentName:
Description: An environment name that is prefixed to resource names
Type: String