Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging from parent fork #1

Merged
merged 7 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Using your cloud instance of choice do the following:
- Ensure you have the following environments: "Development", "Test", "Staging", "Production"
- Install a tentacle to connect to Octopus Deploy
- Option A: Install a polling tentacle directly on your machine (preferred and easiest).
- Option B: Run the tentacle as a docker container. Run `docker run --env ServerApiKey=YOUR_API_KEY --env ServerUrl=YOUR_SERVER_URL --env Space=Default --env TargetWorkerPool="Local K8s Worker Pool" --env ACCEPT_EULA=Y --env DISABLE_DIND=N --env ServerPort=10943 --env TargetName="Docker Worker" --platform linux/amd64 --privileged octopusdeploy/tentacle:8.1.563`
- Option B: Run the tentacle as a docker container. A custom image with kubectl has been pre-created. Run `docker run --env ServerApiKey=YOUR_API_KEY --env ServerUrl=YOUR_SERVER_URL --env Space=Default --env TargetWorkerPool="Local K8s Worker Pool" --env ACCEPT_EULA=Y --env DISABLE_DIND=N --env ServerPort=10943 --env TargetName="Docker Worker" --platform linux/amd64 mcasperson/tentacle`
- Option C: Run the tentacle from Kubernetes.
- In a file explorer, go to `octopus-tentacle.yaml` file and replace `YOUR_API_KEY` and `YOUR_SERVER_URL` with your API key and server URL.
- Run `kubectl apply -f octopus-tentacle.yaml`
Expand Down Expand Up @@ -202,7 +202,7 @@ This activity will happen only if we have enough time. We will install and conf
- Configure first application
- Click the `New App` button
- Application Name: `randomquotes-dev`
- Project Name: `Default`
- Project Name: `default`
- Repository URL: `https://github.com/OctopusSamples/RandomQuotes-K8s.git`
- Paths: `k8s/overlays/dev`
- Cluster Url: `https://kubernetes.default.svc`
Expand Down
2 changes: 1 addition & 1 deletion k8s/base/randomquotes-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: randomquotes-web
image: octopussamples/randomquotes-k8s:0.1.5
image: octopussamples/randomquotes-k8s:0.1.32
resources:
requests:
memory: "64Mi"
Expand Down
4 changes: 2 additions & 2 deletions k8s/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: development
namespace: dev
resources:
- ../../base

Expand All @@ -12,7 +12,7 @@ secretGenerator:
images:
- name: octopussamples/randomquotes-k8s
newName: octopussamples/randomquotes-k8s
newTag: "0.1.5"
newTag: "0.1.33"

patches:
- target:
Expand Down
2 changes: 1 addition & 1 deletion k8s/overlays/test/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: test
namespace: testing
resources:
- ../../base

Expand Down
4 changes: 2 additions & 2 deletions k8s/provision/namespaces.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Namespace
metadata:
name: dev
name: development
---
apiVersion: v1
kind: Namespace
metadata:
name: testing
name: test
---
apiVersion: v1
kind: Namespace
Expand Down
6 changes: 3 additions & 3 deletions src/RandomQuotes.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@{
ViewData["Title"] = "Random Quotes";
ViewData["Title"] = "Random Quotes - Running on Kubernetes!";
}

<h2>Quotes as a Service</h2>
<h2>Quotes as a Service - Running on Kubernetes</h2>

<div class="panel panel-default">
<div class="panel-body">
Expand All @@ -16,5 +16,5 @@
</div>

<form method="post" asp-action="ReloadPage">
<input type="submit" class="btn btn-success btn-lg text-center" style="background-color: blue" value="Refresh" />
<input type="submit" class="btn btn-success btn-lg text-center" style="background-color: blue" value="Give me a quote" />
</form>
Loading