From 3e897acbcc99ba2692aed413280eb81914bc3b85 Mon Sep 17 00:00:00 2001 From: Amirreza Nasiri Date: Sat, 23 Sep 2023 17:59:41 +0330 Subject: [PATCH] Add kubernetes manifests and fix emojis --- config.yaml | 12 +++++----- docs/examples/kubernetes/deployment.yaml | 29 ++++++++++++++++++++++++ docs/examples/kubernetes/service.yaml | 16 +++++++++++++ templates/short.gtpl | 2 +- 4 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 docs/examples/kubernetes/deployment.yaml create mode 100644 docs/examples/kubernetes/service.yaml diff --git a/config.yaml b/config.yaml index 71e7581..a1725f1 100644 --- a/config.yaml +++ b/config.yaml @@ -10,27 +10,27 @@ paths: versions: - version: 0.1.0 vars: - emoji: "🧘‍♂️⬜🦠" + emoji: "🧘⬜🦠" message: "[Initial commit] Add a meal serving cloth (Sofreh)" - version: 0.1.1 vars: - emoji: "🧘‍♂️⬜✨" + emoji: "🧘⬜✨" message: "[Fix] Cleanup the cloth" - version: 0.2.0 vars: - emoji: "🧘‍♂️🍞🦠" + emoji: "🧘🍞🦠" message: "[Feature] Add Sangak bread" - version: 0.2.1 vars: - emoji: "🧘‍♂️🍞✨" + emoji: "🧘🍞✨" message: "[Fix] Use perfectly baked Sangak bread" - version: 0.3.0 vars: - emoji: "🧘‍♂️🥖🦠" + emoji: "🧘🥖🦠" message: "[Feature] Add Barbari bread" - version: 0.3.1 vars: - emoji: "🧘‍♂️🥖✨" + emoji: "🧘🥖✨" message: "[Fix] Use unbiten Barbari bread" - version: 1.0.0 vars: diff --git a/docs/examples/kubernetes/deployment.yaml b/docs/examples/kubernetes/deployment.yaml new file mode 100644 index 0000000..5b38e60 --- /dev/null +++ b/docs/examples/kubernetes/deployment.yaml @@ -0,0 +1,29 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: breakfast + name: breakfast +spec: + replicas: 2 + selector: + matchLabels: + app: breakfast + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app: breakfast + spec: + containers: + - image: evryn/breakfast:0.1.0 + imagePullPolicy: IfNotPresent + name: breakfast + ports: + - name: http + containerPort: 8080 + protocol: TCP diff --git a/docs/examples/kubernetes/service.yaml b/docs/examples/kubernetes/service.yaml new file mode 100644 index 0000000..4a27e07 --- /dev/null +++ b/docs/examples/kubernetes/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: breakfast + name: breakfast-svc +spec: + selector: + app: breakfast + type: NodePort + ports: + - name: http + nodePort: 30080 + port: 8080 + protocol: TCP + targetPort: 8080 diff --git a/templates/short.gtpl b/templates/short.gtpl index 5b62eb9..0046984 100644 --- a/templates/short.gtpl +++ b/templates/short.gtpl @@ -1 +1 @@ -v{{ .Version }} ({{ index .Vars "emoji" }}) \ No newline at end of file +v{{ .Version }} ({{ index .Vars "emoji" }})