Compare commits

...

6 Commits

Author SHA1 Message Date
5eaefccdb7 Updated drone ci 2022-04-01 11:25:29 +07:00
a68788913b Merge branch 'main' of https://github.com/sombochea/kubernetes-installation into main 2022-04-01 10:44:47 +07:00
b9523c0d4d Updated drone ci 2022-04-01 10:44:38 +07:00
Sambo Chea
e72c6168ef Create portainer.md 2022-03-09 09:24:48 +07:00
Sambo Chea
990300c269 Create local-path.md 2022-03-09 09:07:55 +07:00
0cbaf1c165 Updated nginx 2022-03-02 15:37:52 +07:00
5 changed files with 51 additions and 35 deletions

5
NGINX_ING.md Normal file
View File

@@ -0,0 +1,5 @@
# Nginx Ingress Controller
```shell
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/baremetal/deploy.yaml
```

View File

@@ -1,11 +1,12 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: drone
labels:
app.kubernetes.io/name: drone
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: drone
@@ -15,14 +16,14 @@ spec:
app.kubernetes.io/name: drone
spec:
containers:
- name: runner
image: drone/drone-runner-kube:latest
ports:
- containerPort: 3000
env:
- name: DRONE_RPC_HOST
value: dci.osa.cubetiqs.com
- name: DRONE_RPC_PROTO
value: https
- name: DRONE_RPC_SECRET
value: super-duper-secret
- name: runner
image: drone/drone-runner-kube:latest
ports:
- containerPort: 3000
env:
- name: DRONE_RPC_HOST
value: dci.cubetiqs.com
- name: DRONE_RPC_PROTO
value: https
- name: DRONE_RPC_SECRET
value: 1a6c2d8b6fac4bf9351e5149c39e7fc4

View File

@@ -4,25 +4,25 @@ metadata:
namespace: default
name: drone
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
- create
- delete
- list
- watch
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
- create
- delete
- list
- watch
- update
---
kind: RoleBinding
@@ -31,10 +31,10 @@ metadata:
name: drone
namespace: default
subjects:
- kind: ServiceAccount
name: default
namespace: default
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: Role
name: drone
apiGroup: rbac.authorization.k8s.io
apiGroup: rbac.authorization.k8s.io

6
portainer.md Normal file
View File

@@ -0,0 +1,6 @@
# Install Portainer
```shell
helm install --create-namespace -n portainer portainer portainer/portainer \
--set service.type=LoadBalancer \
--set tls.force=true
```

View File

@@ -0,0 +1,4 @@
# Install Local Path
```shell
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
```