-
AWS Virtual Private Cloud (VPC) : user defined vertual network
-
Public and Private Subnets : Subnets we can define into private and public t expose to the external or internet
-
Route Tables - Main and Custom to map to the public internet gate way
-
Internet Gateway - to associate the the any route table to the internet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP DATABASE IF EXISTS online_auction_bidding; | |
DROP USER IF EXISTS online_auction_bidding; | |
CREATE DATABASE online_auction_bidding; | |
CREATE USER online_auction_bidding WITH PASSWORD 'online_auction_bidding'; | |
GRANT ALL PRIVILEGES ON DATABASE online_auction_bidding to online_auction_bidding; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
postgresql: | |
image: postgres:10.4 | |
container_name: postgress-service | |
volumes: | |
- /var/db/data/postgresql:/var/lib/postgresql | |
environment: | |
- POSTGRES_USER=test | |
- POSTGRES_PASSWORD=test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kaf1 | |
spec: | |
type: LoadBalancer | |
ports: | |
- name: port-9092 | |
port: 9092 | |
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kafka1 | |
spec: | |
replicas: 1 | |
selector: | |
app: kafka1 | |
template: | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: zoo1 | |
spec: | |
type: LoadBalancer | |
ports: | |
- name: port-2181 | |
port: 2181 | |
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: zookeeper1 | |
spec: | |
replicas: 1 | |
selector: | |
app: zookeeper1 | |
template: | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CLUSTER_DNS=[...] | |
export CLUSTER_IP=[...] | |
ssh -i workshop.pem docker@$CLUSTER_IP | |
docker container run -d --name jenkins -p 8080:8080 jenkins:alpine | |
docker container ls # Wait until it is up and running |