diff options
author | Christian Heimes <christian@python.org> | 2015-10-15 17:57:42 +0200 |
---|---|---|
committer | Christian Heimes <christian@python.org> | 2015-10-15 17:57:42 +0200 |
commit | e2eb7931187dd8fd6580ef18027a9fe209b57dab (patch) | |
tree | c2bf3891c24d702ab21702b98ac0a23954561463 | |
parent | 5be736d996f8c6cc85c4d6e859deeea7f7088698 (diff) | |
download | custodia_pwmgr-e2eb7931187dd8fd6580ef18027a9fe209b57dab.tar.gz custodia_pwmgr-e2eb7931187dd8fd6580ef18027a9fe209b57dab.tar.xz custodia_pwmgr-e2eb7931187dd8fd6580ef18027a9fe209b57dab.zip |
kubelet test deployment
-rwxr-xr-x | custodia_pwmgr/custodia_pwmgr.py | 8 | ||||
-rw-r--r-- | kubernetes/custodia-pwmgr-rc.yaml | 4 | ||||
-rw-r--r-- | 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 |