Compare commits
3 Commits
4fda5c188a
...
b2df8f5895
Author | SHA1 | Date | |
---|---|---|---|
|
b2df8f5895 | ||
|
43535c3e2c | ||
|
635276f04a |
@ -1,17 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: blog-balancer
|
|
||||||
labels:
|
|
||||||
app: blog-balancer
|
|
||||||
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer
|
|
||||||
ports:
|
|
||||||
- name: blog-balancer
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 3000
|
|
||||||
selector:
|
|
||||||
app: blog-dep
|
|
||||||
sessionAffinity: None
|
|
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: blog-dep
|
name: blog-dep
|
||||||
|
namespace: blog
|
||||||
labels:
|
labels:
|
||||||
app: blog-dep
|
app: blog-dep
|
||||||
spec:
|
spec:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
# Dockerfile Cheat Sheet
|
# Docker Compose Cheat Sheet
|
||||||
|
|
||||||
Coming soon...
|
Coming soon...
|
||||||
|
|
||||||
|
In the mean time, check out:
|
||||||
|
|
||||||
|
- [devhints cheat sheet](https://devhints.io/docker-compose)
|
||||||
|
- [The official Docker docs](https://docs.docker.com/compose/compose-file/compose-file-v3/)
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
# Home
|
# Home
|
||||||
|
|
||||||
This is my blog, I post intersting stuff on here sometimes I guess.
|
This is my blog, I try to post interesting and helpful stuff on here!
|
||||||
|
|
||||||
Check out my different write ups!
|
Check out my different write ups!
|
||||||
|
|
||||||
|
|
||||||
|
[Gitea](https://gitea.scalz.cloud)
|
||||||
|
|
||||||
|
[Speedtest](https://speedtest.scalz.cloud)
|
||||||
|
9
force_update.sh
Executable file
9
force_update.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# You can use this script to force kubernetes to update to the latest image
|
||||||
|
# Looking for a better way to do this...
|
||||||
|
DEPLOYMENT_NAME=blog-dep
|
||||||
|
|
||||||
|
kubectl patch deployment $DEPLOYMENT_NAME -p \
|
||||||
|
'{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":30}}}}' -n blog
|
||||||
|
kubectl patch deployment $DEPLOYMENT_NAME -p \
|
||||||
|
'{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":60}}}}' -n blog
|
Loading…
Reference in New Issue
Block a user