浏览代码

HUE-8888 [k8s] Add yaml for docs website service

Romain 6 年之前
父节点
当前提交
88274a08b0

+ 29 - 0
tools/kubernetes/yaml/gethue.com/deployment-docs.gethue.yaml

@@ -0,0 +1,29 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: gethue-docs
+  labels:
+    deployment: gethue-docs
+spec:
+  selector:
+    matchLabels:
+      pod: gethue-docs
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        pod: gethue-docs
+    spec:
+      containers:
+      - name: gethue-docs
+        image: gethue/documentation:latest
+        imagePullPolicy: Always
+        ports:
+          - containerPort: 80
+        readinessProbe:
+          httpGet:
+            path: /
+            port: 80
+          initialDelaySeconds: 3
+          periodSeconds: 60
+          failureThreshold: 30

+ 13 - 0
tools/kubernetes/yaml/gethue.com/service-docs.gethue.yaml

@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: gethue-docs
+  labels:
+    pod: gethue-docs
+spec:
+  selector:
+    pod: gethue-docs
+  ports:
+  - name: gethue-docs
+    port: 80
+  type: ClusterIP