From 111a460a3f7a4fe87c03ef5290423b6a0a2c8193 Mon Sep 17 00:00:00 2001 From: ashpect Date: Mon, 31 Jul 2023 03:53:46 +0530 Subject: [PATCH] minor flow update for make-set-env-prod --- config.sample.toml | 3 +++ kubernetes/templates/test.yml | 15 +++++++++++ kubernetes/templates/web_challenge.yml | 35 -------------------------- 3 files changed, 18 insertions(+), 35 deletions(-) create mode 100644 kubernetes/templates/test.yml delete mode 100644 kubernetes/templates/web_challenge.yml diff --git a/config.sample.toml b/config.sample.toml index b5891953..1b35b723 100644 --- a/config.sample.toml +++ b/config.sample.toml @@ -14,6 +14,9 @@ teamlabel = "ctfteam" templated_manifest_dir = "kubernetes/templates" templated_manifests = [ "harbor.yml", + "mongo.yml", + "gogs.yml", + "mysql.yml", ] [services.api] diff --git a/kubernetes/templates/test.yml b/kubernetes/templates/test.yml new file mode 100644 index 00000000..3431edeb --- /dev/null +++ b/kubernetes/templates/test.yml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: ubuntu-test-pod +spec: + containers: + - name: ubuntu-container + image: ubuntu + command: + - sleep + - "3600" + resources: + limits: + memory: "256Mi" + cpu: "0.5" diff --git a/kubernetes/templates/web_challenge.yml b/kubernetes/templates/web_challenge.yml deleted file mode 100644 index 81d205aa..00000000 --- a/kubernetes/templates/web_challenge.yml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: appy -spec: - selector: - matchLabels: - app: appy - replicas: 1 - template: - metadata: - labels: - app: appy - spec: - containers: - - name: mycontainer - image: myimage - ports: - - name: server - containerPort: 3000 - ---- -apiVersion: v1 -kind: Service -metadata: - name: myservice -spec: - type: NodePort - selector: - app: appy - ports: - - name: server - protocol: TCP - port: 3000 - targetPort: 3000