add app snippet-box
This commit is contained in:
34
kubernetes/apps/snippet-box/app/development.yaml
Normal file
34
kubernetes/apps/snippet-box/app/development.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: snippet-box
|
||||
namespace: snippet-box
|
||||
labels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
spec:
|
||||
containers:
|
||||
- name: snippet-box
|
||||
image: pawelmalak/snippet-box:arm
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 5000
|
||||
name: snippet-box-port
|
||||
env:
|
||||
- name: TZ
|
||||
value: Australia/Sydney
|
||||
volumeMounts:
|
||||
- name: snippet-box-data
|
||||
mountPath: /app/data
|
||||
volumes:
|
||||
- name: snippet-box-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/snippet-box
|
||||
type: Directory
|
||||
21
kubernetes/apps/snippet-box/app/ingress.yaml
Normal file
21
kubernetes/apps/snippet-box/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: snippet-box-ingress
|
||||
namespace: snippet-box
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "snippet-box.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: snippet-box
|
||||
port:
|
||||
number: 5000
|
||||
17
kubernetes/apps/snippet-box/app/service.yaml
Normal file
17
kubernetes/apps/snippet-box/app/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: snippet-box
|
||||
namespace: snippet-box
|
||||
labels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
name: snippet-box-port
|
||||
Reference in New Issue
Block a user