From bd221141d6cdf307a7923d036a0d2d4836d8e599 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 3 Mar 2021 13:28:40 +0100 Subject: [PATCH] Added k8s config --- all.yaml | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 all.yaml diff --git a/all.yaml b/all.yaml new file mode 100644 index 0000000..a7dc42e --- /dev/null +++ b/all.yaml @@ -0,0 +1,166 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + creationTimestamp: null + labels: + io.kompose.service: db-claim0 + name: db-claim0 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +status: {} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.22.0 (955b78124) + creationTimestamp: null + labels: + io.kompose.service: db + name: db +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: db + strategy: + type: Recreate + template: + metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.22.0 (955b78124) + creationTimestamp: null + labels: + io.kompose.service: db + spec: + containers: + - env: + - name: MYSQL_DATABASE + - name: MYSQL_PASSWORD + - name: MYSQL_ROOT_PASSWORD + - name: MYSQL_USER + image: mysql/mysql-server:5.7 + name: misp-db + resources: {} + volumeMounts: + - mountPath: /var/lib/mysql + name: db-claim0 + restartPolicy: Always + volumes: + - name: db-claim0 + persistentVolumeClaim: + claimName: db-claim0 +status: {} +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + creationTimestamp: null + labels: + io.kompose.service: web-claim0 + name: web-claim0 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +status: {} +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + creationTimestamp: null + labels: + io.kompose.service: web-claim1 + name: web-claim1 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +status: {} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.22.0 (955b78124) + creationTimestamp: null + labels: + io.kompose.service: web + name: web +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: web + strategy: + type: Recreate + template: + metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.22.0 (955b78124) + creationTimestamp: null + labels: + io.kompose.service: web + spec: + containers: + - env: + - name: MISP_ADMIN_EMAIL + - name: MISP_ADMIN_PASSPHRASE + - name: MISP_BASEURL + - name: MYSQL_DATABASE + - name: MYSQL_HOST + - name: MYSQL_PASSWORD + - name: MYSQL_USER + - name: POSTFIX_RELAY_HOST + - name: TIMEZONE + image: misp:latest + name: misp-web + ports: + - containerPort: 80 + resources: {} + volumeMounts: + - mountPath: /dev/random + name: web-claim0 + - mountPath: /var/www/MISP + name: web-claim1 + restartPolicy: Always + volumes: + - name: web-claim0 + persistentVolumeClaim: + claimName: web-claim0 + - name: web-claim1 + persistentVolumeClaim: + claimName: web-claim1 +status: {} +--- +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.22.0 (955b78124) + creationTimestamp: null + labels: + io.kompose.service: web + name: web +spec: + ports: + - name: "80" + port: 80 + targetPort: 80 + selector: + io.kompose.service: web +status: + loadBalancer: {}