Skip to content
k8s.yml 998 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: libresh
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - env:
        image: indiepaas/website:latest
        imagePullPolicy: Always
        name: libresh
        ports:
        - containerPort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/tls-acme: "true"
    certmanager.k8s.io/cluster-issuer: letsencrypt-prod
  name: libre-sh
  namespace: libre-sh
spec:
  rules:
Pierre Ozoux's avatar
Pierre Ozoux committed
  - host: k8s.libre.sh
Pierre Ozoux's avatar
Pierre Ozoux committed
    http:
      paths:
      - backend:
          serviceName: libresh-web
          servicePort: http
        path: /
  tls:
  - hosts:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - k8s.libre.sh
    secretName: k8s-libresh-tls
Pierre Ozoux's avatar
Pierre Ozoux committed
---
apiVersion: v1
kind: Service
metadata:
  name: libresh-web
  namespace: libre-sh
spec:
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: 80
  selector:
    app: nginx