From b94ce4634585fbeca1f61798158f890f7441ac0f Mon Sep 17 00:00:00 2001
From: kaiyou <dev@kaiyou.fr>
Date: Fri, 4 Aug 2023 10:08:35 +0200
Subject: [PATCH] Add example yamls

---
 docs/calico.yaml  | 30 ++++++++++++++++++++++++++++++
 docs/podinfo.yaml | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 docs/calico.yaml
 create mode 100644 docs/podinfo.yaml

diff --git a/docs/calico.yaml b/docs/calico.yaml
new file mode 100644
index 0000000..0311752
--- /dev/null
+++ b/docs/calico.yaml
@@ -0,0 +1,30 @@
+apiVersion: crd.projectcalico.org/v3
+kind: FelixConfiguration
+metadata:
+  name: default
+spec:
+  logSeverityScreen: Error
+---
+apiVersion: operator.tigera.io/v1
+kind: Installation
+metadata:
+  name: default
+spec:
+  # Enforce the use of an IPv6 Docker registry for Calico images
+  registry: registry.ipv6.docker.com
+  flexVolumePath: /data/kubelet/volume-plugins
+  kubeletVolumePluginPath: /data/kubelet
+  calicoNetwork:
+    ipPools:
+    - blockSize: 122
+      # This is the pod CIDR again
+      cidr: fdfd:9432:32b3:200::/56
+      encapsulation: VXLAN
+      natOutgoing: Enabled
+      nodeSelector: all()
+---
+apiVersion: operator.tigera.io/v1
+kind: APIServer 
+metadata: 
+  name: default
+spec: {}
diff --git a/docs/podinfo.yaml b/docs/podinfo.yaml
new file mode 100644
index 0000000..fd786dd
--- /dev/null
+++ b/docs/podinfo.yaml
@@ -0,0 +1,40 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: test
+spec:
+  replicas: 2
+  selector:
+    matchLabels:
+      name: test
+  template:
+    metadata:
+      labels:
+        name: test
+    spec:
+      tolerations:
+        - effect: NoExecute
+          operator: Exists
+        - effect: NoSchedule
+          operator: Exists
+      containers:
+        - name: test
+          image: registry.ipv6.docker.com/stefanprodan/podinfo
+          imagePullPolicy: IfNotPresent
+          ports:
+          - name: http
+            containerPort: 9898
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: test
+spec:
+  selector:
+    name: test
+  ports:
+  - name: http
+    protocol: TCP
+    port: 80
+    targetPort: http
-- 
GitLab