diff --git a/Vagrantfile b/Vagrantfile index 0d8ea48..2a48e28 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -134,5 +134,4 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end config.vm.provision "shell", inline: $provision, privileged: true - config.vm.network "forwarded_port", guest: 9898, host: 9898 end diff --git a/apps/networking/metallb.yaml b/apps/networking/metallb.yaml new file mode 100644 index 0000000..82fe90f --- /dev/null +++ b/apps/networking/metallb.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: metallb + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "1" +spec: + project: workshop + ignoreDifferences: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + jsonPointers: + - /spec/conversion/webhook/clientConfig/caBundle + sources: + - repoURL: https://metallb.github.io/metallb + chart: metallb + targetRevision: "0.14.9" + helm: + valueFiles: + - $values/manifests/networking/metallb/values.yaml + - repoURL: https://github.com/shautvast/ops-demo + targetRevision: HEAD + ref: values + destination: + server: https://kubernetes.default.svc + namespace: metallb-system + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true diff --git a/manifests/networking/L2Advertisement.yaml b/manifests/networking/L2Advertisement.yaml new file mode 100644 index 0000000..cf03617 --- /dev/null +++ b/manifests/networking/L2Advertisement.yaml @@ -0,0 +1,8 @@ +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: workshop-l2 + namespace: metallb-system +spec: + ipAddressPools: + - workshop-pool diff --git a/manifests/networking/metallb/metallb-config.yaml b/manifests/networking/metallb/metallb-config.yaml new file mode 100644 index 0000000..c422bd2 --- /dev/null +++ b/manifests/networking/metallb/metallb-config.yaml @@ -0,0 +1,8 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: workshop-pool + namespace: metallb-system +spec: + addresses: + - 192.168.56.200-192.168.56.220 diff --git a/manifests/networking/metallb/values.yaml b/manifests/networking/metallb/values.yaml new file mode 100644 index 0000000..e69de29