diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml new file mode 100644 index 0000000..afdaafb --- /dev/null +++ b/deploy/deployment.yaml @@ -0,0 +1,22 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: alexohneander-zola-deployment + namespace: websites + labels: + app: alexohneander-zola +spec: + replicas: 1 + selector: + matchLabels: + app: alexohneander-zola + template: + metadata: + labels: + app: alexohneander-zola + spec: + containers: + - name: alexohneander-zola + image: git.dev-null.rocks/alexohneander/alexohneander-zola:sha-c1c1512 + ports: + - containerPort: 80 diff --git a/deploy/ingress.yaml b/deploy/ingress.yaml new file mode 100644 index 0000000..f5aa404 --- /dev/null +++ b/deploy/ingress.yaml @@ -0,0 +1,59 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: alexohneander-zola-ingress + namespace: websites + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/ingress.class: nginx + kubernetes.io/tls-acme: "true" +spec: + ingressClassName: nginx + tls: + - hosts: + - alexohneander.de + - wellnitz-alex.de + - www.alexohneander.de + - www.wellnitz-alex.de + secretName: alexohneander-tls + rules: + - host: www.wellnitz-alex.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: alexohneander-zola-service + port: + number: 80 + - host: www.alexohneander.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: alexohneander-zola-service + port: + number: 80 + - host: wellnitz-alex.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: alexohneander-zola-service + port: + number: 80 + - host: alexohneander.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: alexohneander-zola-service + port: + number: 80 diff --git a/deploy/service.yaml b/deploy/service.yaml new file mode 100644 index 0000000..f3ed93f --- /dev/null +++ b/deploy/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: alexohneander-zola-service + namespace: websites +spec: + selector: + app: alexohneander-zola + ports: + - protocol: TCP + port: 80 + targetPort: 80