diff --git a/.gitattributes b/.gitattributes index b0de1df1..dc9cbb5d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,5 @@ # text files use OS defaults on checkout, LF on checkin * text eol=auto # images are binary -*.png binary \ No newline at end of file +*.png binary +*.ico binary \ No newline at end of file diff --git a/samples/README.md b/samples/README.md index fb0fa912..bca12942 100644 --- a/samples/README.md +++ b/samples/README.md @@ -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. diff --git a/samples/demo/Chart/Chart.yaml b/samples/demo/Chart/Chart.yaml new file mode 100644 index 00000000..19a18b9d --- /dev/null +++ b/samples/demo/Chart/Chart.yaml @@ -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. \ No newline at end of file diff --git a/samples/demo/Chart/templates/app.yaml b/samples/demo/Chart/templates/app.yaml new file mode 100644 index 00000000..c9c62e11 --- /dev/null +++ b/samples/demo/Chart/templates/app.yaml @@ -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 \ No newline at end of file diff --git a/samples/demo/Chart/values.yaml b/samples/demo/Chart/values.yaml new file mode 100644 index 00000000..9751b981 --- /dev/null +++ b/samples/demo/Chart/values.yaml @@ -0,0 +1,3 @@ +image: + repository: ghcr.io/radius-project/samples/demo + tag: latest \ No newline at end of file