-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: adapt day 2 operations guide (#2936)
Signed-off-by: Florian Bacher <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]> Co-authored-by: Meg McRoberts <[email protected]>
- Loading branch information
1 parent
5f0a064
commit f9a72b9
Showing
9 changed files
with
145 additions
and
163 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
docs/docs/use-cases/assets/day-2-operations/deployment-initial.yaml
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,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 |
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
20 changes: 20 additions & 0 deletions
20
docs/docs/use-cases/assets/day-2-operations/deployment-new-image.yaml
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,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 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.