~johnhamelink/k8s-barcodebuddy

3c8d9035e490957f0102bc4809f3b33f5a993e6d — John Hamelink 1 year, 3 days ago
Kubernetes resources for barcode buddy
3 files changed, 53 insertions(+), 0 deletions(-)

A deployment.yml
A ingress.yml
A service.yml
A  => deployment.yml +21 -0
@@ 1,21 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: barcodebuddy
spec:
  replicas: 1
  selector:
    matchLabels:
      name: barcodebuddy
  template:
    metadata:
      labels:
        name: barcodebuddy
    spec:
      containers:
      - name: barcodebuddy
        imagePullPolicy: Always
        image: f0rc3/barcodebuddy-docker:latest
        ports:
          - containerPort: 80

A  => ingress.yml +20 -0
@@ 1,20 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: barcodebuddy
  annotations:
    kubernetes.io/ingress.class: "nginx"
    cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
  tls:
    - hosts:
        - barcodebuddy.johnhame.link
      secretName: barcodebuddy-tls
  rules:
  - host: barcodebuddy.johnhame.link
    http:
      paths:
      - path: /
        backend:
          serviceName: barcodebuddy
          servicePort: 80

A  => service.yml +12 -0
@@ 1,12 @@
---
apiVersion: v1
kind: Service
metadata:
  name: barcodebuddy
spec:
  ports:
    - name: http
      port: 80
      targetPort: 80
  selector:
    name: barcodebuddy