first commit
commit
8782043cdf
@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: adminmongo-deployment
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: adminmongo-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app_name: collecte
|
||||
app_kind: adminmongo_webserver
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: adminmongo_webserver
|
||||
spec:
|
||||
containers:
|
||||
- name: adminmongo
|
||||
image: mrvautin/adminmongo
|
||||
ports:
|
||||
- containerPort: 1234
|
||||
env:
|
||||
- name: HOST
|
||||
value: 0.0.0.0
|
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: adminmongo-service-lb
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: adminmongo-service-lb
|
||||
spec:
|
||||
selector:
|
||||
app_name: collecte
|
||||
app_kind: adminmongo_webserver
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 1234
|
||||
type: LoadBalancer
|
@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mongodb-deployment
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: mongodb-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app_name: collecte
|
||||
app_kind: mongodb_database
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: mongodb_database
|
||||
spec:
|
||||
containers:
|
||||
- name: mongodb
|
||||
image: mongo:4.2.5-bionic
|
||||
ports:
|
||||
- containerPort: 27017
|
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mongodb-service-cip
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: adminmongo-service-lb
|
||||
spec:
|
||||
selector:
|
||||
app_name: collecte
|
||||
app_kind: mongodb_database
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 27017
|
||||
targetPort: 27017
|
||||
type: ClusterIP
|
@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nifi-deployment
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: nifi-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app_name: collecte
|
||||
app_kind: nifi_webserver
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: nifi_webserver
|
||||
spec:
|
||||
containers:
|
||||
- name: nifi
|
||||
image: retengr/nifi-docker:1.0.3
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: MONGO_HOST
|
||||
value: mongodb-service-cip.flavien.svc.cluster.local
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 8080
|
||||
failureThreshold: 30
|
||||
periodSeconds: 20
|
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nifi-service-lb
|
||||
labels:
|
||||
app_name: collecte
|
||||
app_kind: nifi-service-lb
|
||||
spec:
|
||||
selector:
|
||||
app_name: collecte
|
||||
app_kind: nifi_webserver
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
type: LoadBalancer
|
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
app_name: persistantvolumes
|
||||
app_kind: webserver
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx:1.17.9-alpine
|
||||
name: nginx
|
||||
volumeMounts:
|
||||
- mountPath: /usr/share/nginx/html
|
||||
name: flavien-pv
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: flavien-pv
|
||||
persistentVolumeClaim:
|
||||
claimName: flavien-pvc
|
||||
readOnly: true
|
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: flavien-pv
|
||||
labels:
|
||||
app_name: persistantvolumes
|
||||
app_kind: persistantvolume
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
path: /mnt/remote-www-root
|
||||
server: denis-peyrusaubes-adf2022025-training.retengr.io
|
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: flavien-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: ""
|
||||
selector:
|
||||
matchLabels:
|
||||
app_name: persistantvolumes
|
||||
app_kind: persistantvolume
|
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: persistantvolumes-service-lb
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
selector:
|
||||
app_name: persistantvolumes
|
||||
app_kind: webserver
|
||||
type: LoadBalancer
|
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
for i in {1..1000}
|
||||
do
|
||||
curl a21cd4f80536e43d6a08a852da554098-77735060.eu-west-1.elb.amazonaws.com
|
||||
sleep 1
|
||||
done
|
Loading…
Reference in New Issue