Skip to content

Commit

Permalink
Add Kuberenetes tutorial content (#620)
Browse files Browse the repository at this point in the history
* Add Kuberenetes tutorial content

* Update demo/Chart/values.yaml

Co-authored-by: Aaron Crawfis <[email protected]>

* Update demo/Chart/values.yaml

Co-authored-by: Aaron Crawfis <[email protected]>

* k8s guestbook application example for use in tutorial (#626)

* copy over k8s guestbook application example for use in tutorial

Signed-off-by: Will Tsai <[email protected]>

* Apply suggestions from code review

Co-authored-by: Jonathan Smith <[email protected]>

---------

Signed-off-by: Will Tsai <[email protected]>
Co-authored-by: Jonathan Smith <[email protected]>

* Rebase to v0.26

* move chat templatesto samples

---------

Signed-off-by: Will Tsai <[email protected]>
Co-authored-by: Aaron Crawfis <[email protected]>
Co-authored-by: Will <[email protected]>
Co-authored-by: Jonathan Smith <[email protected]>
Co-authored-by: Reshma Abdul Rahim <[email protected]>
Co-authored-by: Reshma Abdul Rahim <[email protected]>
  • Loading branch information
6 people authored Oct 24, 2023
1 parent 1b1ee51 commit 5b4f462
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# text files use OS defaults on checkout, LF on checkin
* text eol=auto
# images are binary
*.png binary
*.png binary
*.ico binary
2 changes: 1 addition & 1 deletion samples/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Reference applicatins
# Reference applications

Reference apps are templates that show a complete app. You are able to clone and deploy any of these apps to try out various Project Radius functionality.

Expand Down
5 changes: 5 additions & 0 deletions samples/demo/Chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "0.1.0"
version: 0.1.0
name: demo
description: A Helm chart for the Radius demo application.
25 changes: 25 additions & 0 deletions samples/demo/Chart/templates/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
app: webapp
template:
metadata:
labels:
app: webapp
spec:
containers:
- name: webapp
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
env:
- name: CONNECTION_REDIS_URL
valueFrom:
secretKeyRef:
name: redis-secret
key: url
ports:
- containerPort: 3000
3 changes: 3 additions & 0 deletions samples/demo/Chart/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
image:
repository: ghcr.io/radius-project/samples/demo
tag: latest

0 comments on commit 5b4f462

Please sign in to comment.