-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in-line YAMLs to EKS mini-tutorial, prevent conflicts with base n…
…etpol tutorial (#131)
- Loading branch information
1 parent
11d1ca5
commit 517e522
Showing
3 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: otterize-tutorial-eks | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: client | ||
namespace: otterize-tutorial-eks | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: client | ||
template: | ||
metadata: | ||
labels: | ||
app: client | ||
spec: | ||
containers: | ||
- name: client | ||
image: alpine/curl | ||
command: [ "/bin/sh", "-c", "--" ] | ||
args: [ "while true; do echo \"Calling server...\"; if ! timeout 2 curl -si server 2>/dev/null; then echo \"curl timed out\"; fi; sleep 2; done" ] | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: client-other | ||
namespace: otterize-tutorial-eks | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: client-other | ||
template: | ||
metadata: | ||
labels: | ||
app: client-other | ||
spec: | ||
containers: | ||
- name: client-other | ||
image: alpine/curl | ||
command: [ "/bin/sh", "-c", "--" ] | ||
args: [ "while true; do echo \"Calling server...\"; if ! timeout 2 curl -si server 2>/dev/null; then echo \"curl timed out\"; fi; sleep 2; done" ] | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: server | ||
namespace: otterize-tutorial-eks | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: server | ||
template: | ||
metadata: | ||
labels: | ||
app: server | ||
spec: | ||
containers: | ||
- name: server | ||
image: node:19 | ||
command: [ "/bin/sh","-c" ] | ||
args: [ "echo \"Hi, I am the server, you called, may I help you?\" > index.html; npx --yes http-server -p 80 " ] | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: server | ||
namespace: otterize-tutorial-eks | ||
spec: | ||
selector: | ||
app: server | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 80 |
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