Month: November 2020
GCP – Networking
VPC Network Peering
Cloud VPC Network Peering lets you privately connect two VPC networks, which can reduce latency, cost, and increase security.
Shared VPC
Shared VPC lets you share subnets with other projects. You can then create resources (like VM instances) on those subnets
Packet Mirroring
Packet Mirroring aims to provide functionality in cloud, which can mirror a customers regular traffic and fulfill customers need for Advanced Security and Application Performance Monitoring.
GKE – ingress
Ingress Controller
1.
ovidiu@cloudshell:~(dev-1)$ kubectl create deployment nginx –image=nginx –replicas=2
ovidiu@cloudshell:~(dev-1)$ kubectl get deploy
NAME READY UP-TO-DATE AVAILABLE AGE
nginx 2/2 2 2 73m
2.
ovidiu@cloudshell:~(dev-1)$ kubectl expose deployment nginx –port=80
ovidiu@cloudshell:~(dev-1)$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.3.240.1 <none> 443/TCP 76m
nginx NodePort 10.3.248.50 <none> 80:30495/TCP 75m
3.
ovidiu@cloudshell:~(dev-1)$ kubectl apply -f ingress.yaml
ingress.networking.k8s.io/ovi-gke-ing created
ovidiu@cloudshell:~/exam/ex16 (asixdev-175816)$ more ingress.yaml
—
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ovi-gke-ing
annotations:
kubernetes.io/ingress.class: gce
spec:
rules:
– http:
paths:
– path: /
backend:
serviceName: nginx
servicePort: 80
ovidiu@cloudshell:~(dev-1)$ kubectl get ing
NAME HOSTS ADDRESS PORTS AGE
ovi-gke-ing * 34.120.206.125 80 22m

