Skip to content

Commit

Permalink
docs: adapt day 2 operations guide (#2936)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
Co-authored-by: Moritz Wiesinger <[email protected]>
Co-authored-by: Meg McRoberts <[email protected]>
  • Loading branch information
3 people authored Feb 5, 2024
1 parent 5f0a064 commit f9a72b9
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 163 deletions.
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

0 comments on commit f9a72b9

Please sign in to comment.