diff --git a/apps-kustomized/whoogle/deploy.yaml b/apps-kustomized/whoogle/deploy.yaml new file mode 100644 index 0000000..554536a --- /dev/null +++ b/apps-kustomized/whoogle/deploy.yaml @@ -0,0 +1,63 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: whoogle + namespace: whoogle +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: whoogle + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: whoogle + spec: + containers: + - env: + - name: WHOOGLE_CONFIG_LANGUAGE + value: en + - name: WHOOGLE_CONFIG_SEARCH_LANGUAGE + value: en + image: benbusby/whoogle-search:0.8.4 + imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 3 + httpGet: + path: / + port: http + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + name: whoogle + ports: + - containerPort: 5000 + name: http + protocol: TCP + readinessProbe: + failureThreshold: 3 + httpGet: + path: / + port: http + scheme: HTTP + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: {} + securityContext: + runAsUser: 0 + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + serviceAccount: whoogle + serviceAccountName: whoogle + terminationGracePeriodSeconds: 30 diff --git a/apps-kustomized/whoogle/sa.yaml b/apps-kustomized/whoogle/sa.yaml new file mode 100644 index 0000000..7392eab --- /dev/null +++ b/apps-kustomized/whoogle/sa.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: whoogle + namespace: whoogle diff --git a/apps-kustomized/whoogle/service.yaml b/apps-kustomized/whoogle/service.yaml new file mode 100644 index 0000000..dbede84 --- /dev/null +++ b/apps-kustomized/whoogle/service.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + external-dns.alpha.kubernetes.io/hostname: whoogle.martyn.berlin + name: whoogle + namespace: whoogle +spec: + allocateLoadBalancerNodePorts: true + externalTrafficPolicy: Cluster + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - name: http + nodePort: 31740 + port: 80 + protocol: TCP + targetPort: http + selector: + app.kubernetes.io/name: whoogle + sessionAffinity: None + type: LoadBalancer diff --git a/everything-app/whoogle.yaml b/everything-app/whoogle.yaml new file mode 100644 index 0000000..e5e11e6 --- /dev/null +++ b/everything-app/whoogle.yaml @@ -0,0 +1,14 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: whoogle + namespace: argocd +spec: + destination: + namespace: whoogle + server: https://kubernetes.default.svc + project: apps + source: + path: apps-kustomized/whoogle + repoURL: https://git.martyn.berlin/martyn/infra4talos + targetRevision: HEAD