From dc2cfc3b9e41c06c0d0e070a64774e6dc1e42d7d Mon Sep 17 00:00:00 2001
From: Dominik Fleischmann <dominik.fleischmann@canonical.com>
Date: Thu, 28 May 2020 13:37:13 +0200
Subject: [PATCH] Make Squid Charm of Loadbalancer type

By adding this change the squid charm
will expose an external IP

Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
---
 magma/hackfest_squid_cnf/charms/squid/metadata.yaml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/magma/hackfest_squid_cnf/charms/squid/metadata.yaml b/magma/hackfest_squid_cnf/charms/squid/metadata.yaml
index 30b0d014..aa3bbfa1 100644
--- a/magma/hackfest_squid_cnf/charms/squid/metadata.yaml
+++ b/magma/hackfest_squid_cnf/charms/squid/metadata.yaml
@@ -10,6 +10,9 @@ tags:
     - misc
 series:
     - kubernetes
+deployment:
+    type: stateful
+    service: loadbalancer
 storage:
     docker:
         type: filesystem
@@ -17,10 +20,4 @@ storage:
     spool:
         type: filesystem
         location: /var/spool/squid
-# -- example relations, delete if unneeded
-#requires:
-#    db:
-#        interface: mysql
-#provides:
-#    website:
-#        interface: http
+
-- 
GitLab