This script automates the installation of an OpenShift cluster on Linux systems. Below are the prerequisites and instructions to run the script on Linux and Mac.
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
--- | |
#BEFORE TASK | |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: before | |
spec: | |
steps: | |
- image: quay.io/avik6028/busybox:latest | |
name: before |
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: Namespace | |
metadata: | |
name: nodejs | |
labels: | |
name: nodejs | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
const html404 = `<!DOCTYPE html> | |
<body> | |
<h1>404 Not Found.</h1> | |
<p>The url you visit is not found.</p> | |
</body>` |
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
#set($DDBResponse = $input.path('$')) | |
#if ($DDBResponse.toString().contains("Item")) | |
#set($context.responseOverride.header.Location = $DDBResponse.Item.longURL.S) | |
#end |
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
{ | |
"Key": { | |
"shortId": { | |
"S": "$input.params().path.shortId" | |
} | |
}, | |
"TableName": "URL-Shortener" | |
} |
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
#set($DDBResponse = $input.path('$')) | |
{ | |
"shortURL": "$DDBResponse.Attributes.shortId.S", | |
"longURL": "$DDBResponse.Attributes.longURL.S", | |
"owner": "$DDBResponse.Attributes.owner.S" | |
} |
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
{ | |
"TableName": "URL-Shortener", | |
"ConditionExpression": "attribute_not_exists(id)", | |
"Key": { | |
"shortId": { | |
"S": $input.json('$.shortURL') | |
} | |
}, | |
"ExpressionAttributeNames": { | |
"#u": "longURL", |
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: myweb | |
labels: | |
env: testing | |
spec: | |
ports: | |
- port: 80 | |
selector: |
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: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | |
resources: | |
- prom.yaml | |
- grafana.yaml | |
NewerOlder