UNPKG

iotsuite-cli

Version:

Command Line Interface for deploying pre-configured IoT solutions through Azure

125 lines 3.27 kB
kind: Service apiVersion: v1 metadata: name: default-http-backend spec: ports: - port: 80 targetPort: 8080 selector: app: default-http-backend --- apiVersion: v1 kind: ReplicationController metadata: name: default-http-backend spec: replicas: 1 selector: app: default-http-backend template: metadata: labels: app: default-http-backend spec: terminationGracePeriodSeconds: 60 containers: - name: default-http-backend # Any image is permissable as long as: # 1. It serves a 404 page at / # 2. It serves 200 on a /healthz endpoint image: gcr.io/google_containers/defaultbackend:1.0 livenessProbe: httpGet: path: /healthz port: 8080 scheme: HTTP initialDelaySeconds: 30 timeoutSeconds: 5 ports: - containerPort: 8080 resources: limits: cpu: 10m memory: 20Mi requests: cpu: 10m memory: 20Mi --- apiVersion: v1 kind: Service metadata: name: nginx-ingress spec: type: LoadBalancer loadBalancerIP: {loadBalancerIP} ports: - port: 80 name: http - port: 443 name: https selector: k8s-app: nginx-ingress-lb --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx-ingress-controller spec: replicas: 2 revisionHistoryLimit: 3 template: metadata: labels: k8s-app: nginx-ingress-lb spec: terminationGracePeriodSeconds: 60 containers: - name: nginx-ingress-controller image: gcr.io/google_containers/nginx-ingress-controller:0.8.3 imagePullPolicy: Always readinessProbe: httpGet: path: /healthz port: 18080 scheme: HTTP livenessProbe: httpGet: path: /healthz port: 18080 scheme: HTTP initialDelaySeconds: 10 timeoutSeconds: 5 args: - /nginx-ingress-controller - --default-backend-service=$(POD_NAMESPACE)/default-http-backend - --default-ssl-certificate=$(POD_NAMESPACE)/tls-certificate # Use downward API env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace ports: - containerPort: 80 - containerPort: 443 volumeMounts: # - name: tls-dhparam-vol # mountPath: /etc/nginx-ssl/dhparam - name: nginx-template-volume mountPath: /etc/nginx/template readOnly: true volumes: - name: nginx-template-volume configMap: name: deployment-configmap items: - key: nginx.tmpl path: nginx.tmpl # - name: tls-dhparam-vol # secret: # secretName: tls-dhparam