forked from OctopusSamples/RandomQuotes-K8s
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from BobJWalker/feature/helm
Adding helm chart and upgrading ingress to gateway api
- Loading branch information
Showing
17 changed files
with
217 additions
and
100 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
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,16 @@ | ||
apiVersion: v2 | ||
name: bobjwalker-randomquotesk8s # The chart name is also used as the repository name when publishing | ||
description: A simple .NET application used to learn Kubernetes deployments | ||
|
||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.88 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "0.1.88" |
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,75 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: randomquotes-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
component: randomquotes-web | ||
template: | ||
metadata: | ||
labels: | ||
component: randomquotes-web | ||
spec: | ||
containers: | ||
- name: randomquotes-web | ||
image: octopussamples/randomquotes-k8s:{{ default .Chart.AppVersion .Values.randomquotes.image.tag }} | ||
resources: | ||
requests: | ||
memory: "64Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
imagePullPolicy: "Always" | ||
ports: | ||
- containerPort: 5000 | ||
name: http-port | ||
env: | ||
- name: RANDOM_SECRET_PHRASE | ||
valueFrom: | ||
secretKeyRef: | ||
name: random-quotes-secrets | ||
key: homepageDisplay | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: randomquotes-app-cluster-ip-service | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
component: randomquotes-web | ||
ports: | ||
- port: 6801 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: randomquotes-gateway-nginx | ||
spec: | ||
gatewayClassName: nginx | ||
listeners: | ||
- name: http | ||
port: 80 | ||
protocol: HTTP | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: randomquotes-gateway-route-nginx | ||
spec: | ||
parentRefs: | ||
- name: randomquotes-gateway-nginx | ||
hostnames: | ||
- "randomquotes.local" | ||
rules: | ||
- matches: | ||
- path: | ||
type: PathPrefix | ||
value: / | ||
backendRefs: | ||
- name: randomquotes-app-cluster-ip-service | ||
port: 6801 |
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,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: random-quotes-secrets | ||
type: Opaque | ||
stringData: | ||
homepageDisplay: {{ .Values.randomquotes.homepageDisplaySecret }} |
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,4 @@ | ||
randomquotes: | ||
homepageDisplaySecret: "blah" | ||
image: | ||
tag: "0.1.88" |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- op: replace | ||
path: /spec/rules/0/host | ||
path: /spec/hostnames/0 | ||
value: randomquotesdev.local |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- op: replace | ||
path: /spec/rules/0/host | ||
path: /spec/hostnames/0 | ||
value: randomquotesprod.local |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- op: replace | ||
path: /spec/rules/0/host | ||
path: /spec/hostnames/0 | ||
value: randomquotesstaging.local |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- op: replace | ||
path: /spec/rules/0/host | ||
path: /spec/hostnames/0 | ||
value: randomquotestest.local |
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,29 @@ | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: argocd-gateway-nginx | ||
spec: | ||
gatewayClassName: nginx | ||
listeners: | ||
- name: https | ||
port: 443 | ||
protocol: HTTPS | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: argo-gateway-route-nginx | ||
spec: | ||
parentRefs: | ||
- name: argo-gateway-nginx | ||
hostnames: | ||
- "argocd.local" | ||
rules: | ||
- matches: | ||
- path: | ||
type: PathPrefix | ||
value: / | ||
backendRefs: | ||
- name: svc/argocd-server | ||
port: 443 |
Oops, something went wrong.