From e2eb7931187dd8fd6580ef18027a9fe209b57dab Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 15 Oct 2015 17:57:42 +0200 Subject: kubelet test deployment --- custodia_pwmgr/custodia_pwmgr.py | 8 ++++---- kubernetes/custodia-pwmgr-rc.yaml | 4 ++-- kubernetes/custodia-pwmgr-service.yaml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/custodia_pwmgr/custodia_pwmgr.py b/custodia_pwmgr/custodia_pwmgr.py index 02f8f9b..6bc3681 100755 --- a/custodia_pwmgr/custodia_pwmgr.py +++ b/custodia_pwmgr/custodia_pwmgr.py @@ -44,7 +44,7 @@ app = Flask(__name__) app.config.update( CUSTODIA_URL='http+unix://%s/secrets' % quote(CUSTODIA_SOCKET, safe=''), # custodia_timeout=2, - CUSTODIA_CONTAINER='pwmgr', + CUSTODIA_CONTAINER='passwords', SECRET_KEY='neHoch4doichu9el', DEBUG=True, ) @@ -60,8 +60,8 @@ class FlaskCustodia(object): # timeout = app.config.get('custodia_timeout') self._container = app.config['CUSTODIA_CONTAINER'] self._client = CustodiaClient(url) - self._client.headers['REMOTE_USER'] = self._container - self.mkcontainer() + #self._client.headers['REMOTE_USER'] = self._container + #self.mkcontainer() def _genpath(self, key): if set(key) & set('/.'): @@ -123,4 +123,4 @@ def delete_password(): return redirect(url_for('index')) if __name__ == '__main__': - app.run() + app.run(host='0.0.0.0') diff --git a/kubernetes/custodia-pwmgr-rc.yaml b/kubernetes/custodia-pwmgr-rc.yaml index d6b66d2..03300b3 100644 --- a/kubernetes/custodia-pwmgr-rc.yaml +++ b/kubernetes/custodia-pwmgr-rc.yaml @@ -14,11 +14,11 @@ spec: labels: name: custodia-pwmgr version: v1 - secrets_namespace: pwmgr + secrets_namespace: secns_pwmgr spec: containers: - name: custodia-pwmgr - image: custodia-pwmgr + image: 10.34.78.249:5000/custodia-pwmgr:latest ports: - containerPort: 5000 name: custodia-pwmgr diff --git a/kubernetes/custodia-pwmgr-service.yaml b/kubernetes/custodia-pwmgr-service.yaml index 3cac5b2..20e7575 100644 --- a/kubernetes/custodia-pwmgr-service.yaml +++ b/kubernetes/custodia-pwmgr-service.yaml @@ -8,7 +8,7 @@ spec: ports: - port: 5000 targetPort: 5000 - nodePort: 30666 + nodePort: 30778 selector: name: custodia-pwmgr type: NodePort -- cgit