moved example k8s deployment .yaml to deploy.wiki.do
This commit is contained in:
parent
2705d760bf
commit
1cf4d8e6ae
|
@ -49,7 +49,7 @@ using wiki to drive some learning about kubernetes.
|
|||
|
||||
# Deploy Wiki
|
||||
|
||||
kubectl apply -f wiki.yaml
|
||||
kubectl apply -f http://deploy.wiki.do/assets/wiki/wiki.yaml
|
||||
|
||||
# Play with the wiki
|
||||
|
||||
|
|
|
@ -1,64 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wiki-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wiki
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wiki
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: farm
|
||||
image: dobbs/farm:1.0.6
|
||||
command: ["wiki"]
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
volumeMounts:
|
||||
- name: dot-wiki
|
||||
mountPath: /home/node/.wiki
|
||||
- name: fedwiki
|
||||
mountPath: /home/node/fedwiki
|
||||
volumes:
|
||||
- name: dot-wiki
|
||||
hostPath:
|
||||
path: /macos/.wiki-k8s
|
||||
- name: fedwiki
|
||||
hostPath:
|
||||
path: /macos/fedwiki
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wiki-service
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
targetPort: 3000
|
||||
port: 80
|
||||
selector:
|
||||
app: wiki
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: wiki
|
||||
spec:
|
||||
rules:
|
||||
- host: "*.localhost"
|
||||
http: &wiki
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: wiki-service
|
||||
servicePort: http
|
||||
# - host: "*.example.com"
|
||||
# http: *wiki
|
Loading…
Reference in New Issue