浏览代码

Añado ejemplo

Celestino Rey 6 月之前
父节点
当前提交
836a77e115
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      README.md

+ 22 - 0
README.md

@@ -30,3 +30,25 @@ Las instrucciones las cogí de [aquí](https://patriciocerda.com/?p=1458#)
       name: simplel2
       namespace: metallb-system
 
+
+## Ejemplo de servicio para wordpress
+
+
+    apiVersion: v1
+    kind: Service
+    metadata:
+      name: wordpress
+      namespace: wordpress
+      labels:
+        app: wordpress
+      annotations:
+        metallb.io/loadBalancerIPs: 192.168.1.152
+    spec:
+      type: LoadBalancer
+      ports:
+        - port: 80
+          targetPort: wordpress
+      selector:
+        app: wordpress
+        tier: frontend
+