Skip to content
Snippets Groups Projects
Commit eca48c08 authored by Alex ubuntu vm's avatar Alex ubuntu vm
Browse files

deployments. added he-codeco-netma namespace

parent 41b168ee
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
---
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: l2network
app.kubernetes.io/instance: system
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: namespace
app.kubernetes.io/part-of: l2network
control-plane: controller-manager
name: he-codeco-netma
---
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: l2sm-operator name: l2sm-operator
namespace: he-codeco-netma
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: l2sm-operator name: l2sm-operator
namespace: he-codeco-netma
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
...@@ -20,6 +36,7 @@ apiVersion: apps/v1 ...@@ -20,6 +36,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: l2sm-controller name: l2sm-controller
namespace: he-codeco-netma
spec: spec:
replicas: 1 replicas: 1
selector: selector:
...@@ -48,6 +65,7 @@ apiVersion: v1 ...@@ -48,6 +65,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: l2sm-controller-service name: l2sm-controller-service
namespace: he-codeco-netma
spec: spec:
selector: selector:
app: l2sm-controller app: l2sm-controller
...@@ -63,20 +81,7 @@ spec: ...@@ -63,20 +81,7 @@ spec:
type: ClusterIP type: ClusterIP
--- ---
   
---
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: l2network
app.kubernetes.io/instance: system
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: namespace
app.kubernetes.io/part-of: l2network
control-plane: controller-manager
name: he-codeco-netma
---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
...@@ -9730,7 +9735,7 @@ spec: ...@@ -9730,7 +9735,7 @@ spec:
- /manager - /manager
env: env:
- name: CONTROLLER_IP - name: CONTROLLER_IP
value: l2sm-controller-service.default.svc.cluster.local value: l2sm-controller-service.he-codeco-netma.svc.cluster.local
- name: CONTROLLER_PORT - name: CONTROLLER_PORT
value: "8181" value: "8181"
- name: SWITCHES_NAMESPACE - name: SWITCHES_NAMESPACE
...@@ -9881,6 +9886,7 @@ apiVersion: apps/v1 ...@@ -9881,6 +9886,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: l2sm-operator name: l2sm-operator
namespace: he-codeco-netma
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
...@@ -9913,7 +9919,7 @@ spec: ...@@ -9913,7 +9919,7 @@ spec:
- name: CONTROLLER_IP - name: CONTROLLER_IP
value: l2sm-controller-service value: l2sm-controller-service
- name: DATABASE_IP - name: DATABASE_IP
value: mysql-development-service value: mysql-service
- name: MYSQL_USER - name: MYSQL_USER
value: l2sm value: l2sm
- name: MYSQL_PASSWORD - name: MYSQL_PASSWORD
...@@ -9922,7 +9928,7 @@ spec: ...@@ -9922,7 +9928,7 @@ spec:
value: l2sm value: l2sm
# imagePullPolicy: Always # imagePullPolicy: Always
nodeSelector: nodeSelector:
dedicated: master dedicated: control-plane
tolerations: tolerations:
- key: dedicated - key: dedicated
operator: Equal operator: Equal
...@@ -9934,6 +9940,7 @@ apiVersion: v1 ...@@ -9934,6 +9940,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: l2sm-operator-service name: l2sm-operator-service
namespace: he-codeco-netma
spec: spec:
ports: ports:
- protocol: TCP - protocol: TCP
...@@ -9948,7 +9955,7 @@ apiVersion: apps/v1 ...@@ -9948,7 +9955,7 @@ apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: l2sm-switch name: l2sm-switch
#namespace: kube-system namespace: he-codeco-netma
labels: labels:
l2sm-component: l2sm-switch l2sm-component: l2sm-switch
spec: spec:
...@@ -10006,6 +10013,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10006,6 +10013,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth10 name: veth10
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10025,6 +10033,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10025,6 +10033,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth1 name: veth1
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10044,6 +10053,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10044,6 +10053,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth2 name: veth2
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10063,6 +10073,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10063,6 +10073,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth3 name: veth3
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10082,6 +10093,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10082,6 +10093,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth4 name: veth4
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10101,6 +10113,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10101,6 +10113,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth5 name: veth5
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10120,6 +10133,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10120,6 +10133,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth6 name: veth6
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10139,6 +10153,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10139,6 +10153,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth7 name: veth7
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10158,6 +10173,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10158,6 +10173,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth8 name: veth8
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10177,6 +10193,7 @@ apiVersion: "k8s.cni.cncf.io/v1" ...@@ -10177,6 +10193,7 @@ apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
metadata: metadata:
name: veth9 name: veth9
namespace: he-codeco-netma
labels: labels:
app: l2sm app: l2sm
spec: spec:
...@@ -10195,6 +10212,7 @@ apiVersion: v1 ...@@ -10195,6 +10212,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: mysql-schema name: mysql-schema
namespace: he-codeco-netma
data: data:
init.sql: | init.sql: |
...@@ -10256,7 +10274,8 @@ data: ...@@ -10256,7 +10274,8 @@ data:
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: mysql-development-pod name: mysql-pod
namespace: he-codeco-netma
labels: labels:
app: mysql app: mysql
spec: spec:
...@@ -10288,7 +10307,8 @@ spec: ...@@ -10288,7 +10307,8 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: mysql-development-service name: mysql-service
namespace: he-codeco-netma
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports:
...@@ -10302,6 +10322,7 @@ apiVersion: v1 ...@@ -10302,6 +10322,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: mysql-secret name: mysql-secret
namespace: he-codeco-netma
type: Opaque type: Opaque
data: data:
MYSQL_ROOT_PASSWORD: cGFzc3dvcmQ= # Base64 encoded "password" MYSQL_ROOT_PASSWORD: cGFzc3dvcmQ= # Base64 encoded "password"
...@@ -10313,6 +10334,7 @@ apiVersion: v1 ...@@ -10313,6 +10334,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: mysql-pv-claim name: mysql-pv-claim
namespace: he-codeco-netma
spec: spec:
storageClassName: manual storageClassName: manual
accessModes: accessModes:
...@@ -10325,6 +10347,7 @@ apiVersion: v1 ...@@ -10325,6 +10347,7 @@ apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
metadata: metadata:
name: mysql-pv name: mysql-pv
namespace: he-codeco-netma
labels: labels:
type: local type: local
spec: spec:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment