123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: web-check
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: web-check
- template:
- metadata:
- labels:
- nginx: backend
- name: web-check
- spec:
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/arch
- operator: In
- values:
- - amd64
- containers:
- - name: web-check
- image: lissy93/web-check:latest
- imagePullPolicy: "Always"
- env:
- - name: GOOGLE_CLOUD_API_KEY
- valueFrom:
- secretKeyRef:
- name: web-check
- key: googlecloud
- - name: REACT_APP_SHODAN_API_KEY
- valueFrom:
- secretKeyRef:
- name: web-check
- key: shodan
- - name: REACT_APP_WHO_API_KEY
- valueFrom:
- secretKeyRef:
- name: web-check
- key: whoapi
- - name: SECURITY_TRAILS_API_KEY
- valueFrom:
- secretKeyRef:
- name: web-check
- key: securitytrails
- - name: BUILT_WITH_API_KEY
- valueFrom:
- secretKeyRef:
- name: web-check
- key: builtwith
- - name: TRANCO_USERNAME
- valueFrom:
- secretKeyRef:
- name: web-check
- key: tranco-username
- - name: TRANCO_API_KEY
- valueFrom:
- secretKeyRef:
- name: web-check
- key: tranco-api-key
- ports:
- - containerPort: 3000
- name: http
- livenessProbe:
- initialDelaySeconds: 600
- timeoutSeconds: 10
- httpGet:
- port: 3000
- httpHeaders:
- - name: Host
- value: "web-check.dodges.it"
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: web-check
- spec:
- type: ClusterIP
- ipFamilyPolicy: PreferDualStack
- selector:
- name: web-check
- ports:
- - protocol: TCP
- port: 3000
- targetPort: 3000
- name: http
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: web-check-ingress
- annotations:
- cert-manager.io/cluster-issuer: "letsencrypt"
- acme.cert-manager.io/http01-edit-in-place: "true"
- nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
- spec:
- tls:
- - hosts:
- - web-check.dodges.it
- secretName: web-check-le-secret
- rules:
- - host: web-check.dodges.it
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: web-check
- port:
- number: 3000
- ingressClassName: nginx
|