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

docs: adapt day 2 operations guide #2936

Merged
merged 15 commits into from
Feb 5, 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
16 changes: 0 additions & 16 deletions docs/docs/use-cases/assets/app-updated-version.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions docs/docs/use-cases/assets/app-with-new-workload.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: v1
kind: Namespace
metadata:
name: podtato-kubectl
annotations:
keptn.sh/lifecycle-toolkit: "enabled"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: podtato-head-frontend
namespace: podtato-kubectl
spec:
selector:
matchLabels:
app.kubernetes.io/name: podtato-head-frontend
template:
metadata:
labels:
app.kubernetes.io/name: podtato-head-frontend
app.kubernetes.io/part-of: podtato-head
app.kubernetes.io/version: 0.3.0
keptn.sh/pre-deployment-tasks: pre-deployment-check
spec:
containers:
- name: podtato-head-frontend
image: ghcr.io/podtato-head/podtato-server:v0.3.0
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: podtato-head-hat
namespace: podtato-kubectl
spec:
selector:
matchLabels:
app.kubernetes.io/name: podtato-head-hat
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: podtato-head-hat
app.kubernetes.io/part-of: podtato-head
app.kubernetes.io/version: 0.3.0
spec:
containers:
- name: podtato-head-hat
image: ghcr.io/podtato-head/podtato-server:v0.3.0
---
apiVersion: lifecycle.keptn.sh/v1beta1
kind: KeptnTaskDefinition
metadata:
name: pre-deployment-check
namespace: podtato-kubectl
spec:
function:
inline:
code: |
console.log("Success")
---
apiVersion: lifecycle.keptn.sh/v1beta1
kind: KeptnAppContext
metadata:
name: podtato-head
namespace: podtato-kubectl
spec:
preDeploymentTasks:
- pre-deployment-check
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ metadata:
name: podtato-head-frontend
namespace: podtato-kubectl
spec:
selector:
matchLabels:
app.kubernetes.io/name: podtato-head-frontend
template:
metadata:
labels:
app.kubernetes.io/name: podtato-head-frontend
app.kubernetes.io/part-of: podtato-head
app.kubernetes.io/version: 0.2.0 # The version label is now updated as well
keptn.sh/pre-deployment-evaluations: my-evaluation
keptn.sh/pre-deployment-tasks: my-task
app.kubernetes.io/version: 0.3.1 # The version label is now updated as well
keptn.sh/pre-deployment-tasks: pre-deployment-check
spec:
containers:
- name: podtato-head-frontend
image: podtato-head-frontend:b # The image tag has been updated from 'a' to 'b'
image: ghcr.io/podtato-head/podtato-server:v0.3.1 # The image tag has been updated from 'a' to 'b'
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: podtato-head-frontend
namespace: podtato-kubectl
spec:
selector:
matchLabels:
app.kubernetes.io/name: podtato-head-frontend
template:
metadata:
labels:
app.kubernetes.io/name: podtato-head-frontend
app.kubernetes.io/part-of: podtato-head
app.kubernetes.io/version: 0.3.0 # the version number stays the same
keptn.sh/pre-deployment-tasks: pre-deployment-check
spec:
containers:
- name: podtato-head-frontend
image: ghcr.io/podtato-head/podtato-server:v0.3.1 # the image tag has been updated to v0.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ metadata:
name: podtato-head-left-leg
namespace: podtato-kubectl
spec:
selector:
matchLabels:
app.kubernetes.io/name: podtato-head-left-leg
template:
metadata:
labels:
app.kubernetes.io/name: podtato-head-left-leg
app.kubernetes.io/part-of: podtato-head
app.kubernetes.io/version: 0.1.0
app.kubernetes.io/version: 0.3.0
spec:
containers:
- name: podtato-head-frontend
image: podtato-head-left-leg:a
- name: podtato-head-left-leg
image: ghcr.io/podtato-head/podtato-server:v0.3.1
44 changes: 0 additions & 44 deletions docs/docs/use-cases/assets/deployment-initial.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions docs/docs/use-cases/assets/deployment-new-image.yaml

This file was deleted.

Loading
Loading