From 34369d211b74eb7043673e12c4a58e591d71a6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 3 Jan 2023 10:25:08 +0200 Subject: [PATCH] Add nyancat server --- nyancat/README.md | 9 ++++++++ nyancat/application.yaml | 49 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 nyancat/README.md create mode 100644 nyancat/application.yaml diff --git a/nyancat/README.md b/nyancat/README.md new file mode 100644 index 0000000..244f52a --- /dev/null +++ b/nyancat/README.md @@ -0,0 +1,9 @@ +# Nyancat server deployment + +Something silly for a change. + +To connect use: + +``` +telnet nyancat.k-space.ee +``` diff --git a/nyancat/application.yaml b/nyancat/application.yaml new file mode 100644 index 0000000..a63b598 --- /dev/null +++ b/nyancat/application.yaml @@ -0,0 +1,49 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nyancat + namespace: nyancat +spec: + replicas: 2 + selector: + matchLabels: + app.kubernetes.io/name: nyancat + template: + metadata: + labels: + app.kubernetes.io/name: nyancat + spec: + containers: + - name: nyancat + image: harbor.k-space.ee/k-space/nyancat-server:latest + command: + - onenetd + - -v1 + - "0" + - "2323" + - nyancat + - -I + - --telnet + securityContext: + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 65534 +--- +apiVersion: v1 +kind: Service +metadata: + name: nyancat + namespace: nyancat + annotations: + metallb.universe.tf/address-pool: eenet + external-dns.alpha.kubernetes.io/hostname: nyancat.k-space.ee +spec: + type: LoadBalancer + externalTrafficPolicy: Local + selector: + app.kubernetes.io/name: nyancat + ports: + - protocol: TCP + port: 23 + targetPort: 2323