Updated kubernetes config

parent 144732f4
FROM nginx
COPY site /srv/www/site
COPY .bowerrc /srv/www/.bowerrc
COPY _config.yml /srv/www/_config.yml
COPY package.json /srv/www/package.json
COPY bower.json /srv/www/bower.json
WORKDIR /srv/www
ADD default.conf /etc/nginx/conf.d/default.conf
......@@ -19,12 +25,6 @@ RUN rm -rf /var/lib/apt/lists/*
RUN gem install jekyll --no-ri --no-rdoc
RUN gem install rouge --no-ri --no-rdoc
COPY site /srv/www/site
COPY .bowerrc /srv/www/.bowerrc
COPY _config.yml /srv/www/_config.yml
COPY package.json /srv/www/package.json
COPY bower.json /srv/www/bower.json
RUN npm install
RUN node_modules/bower/bin/bower install --config.interactive=false -p --allow-root
RUN jekyll build
......
......@@ -23,7 +23,7 @@
"spec": {
"containers": [{
"name": "saml2int",
"image": "uninettno/saml2int:build-1",
"image": "uninettno/saml2int:build-8",
"resources": {
"requests": {
"cpu": "10m",
......@@ -43,20 +43,9 @@
"imagePullPolicy": "Always",
"ports": [{
"containerPort": 80
}],
"volumeMounts": [{
"name": "saml2int",
"mountPath": "/etc/secrets",
"readOnly": true
}]
}],
"restartPolicy": "Always",
"volumes": [{
"name": "saml2int",
"secret": {
"secretName": "saml2int"
}
}]
"restartPolicy": "Always"
}
}
}
......
......@@ -12,10 +12,6 @@
"protocol": "TCP",
"port": 80,
"targetPort": 80
}, {
"protocol": "TCP",
"port": 443,
"targetPort": 443
}],
"type": "NodePort"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment