diff --git a/deployment.yml b/deployment.yml new file mode 100644 index 0000000..646cb29 --- /dev/null +++ b/deployment.yml @@ -0,0 +1,40 @@ +apiVersion: v1 +kind: Service +metadata: + name: mysite-service +spec: + selector: + app/name: mysite + ports: + - name: http + protocol: TCP + port: 8001 + targetPort: 8001 + externalIPs: + - 192.168.1.102 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mysite-deployment + labels: + app/name: mysite +spec: + replicas: 1 + selector: + matchLabels: + app/name: mysite + template: + metadata: + labels: + app/name: mysite + spec: + containers: + - name: mysite + image: docker.andr3h3nriqu3s.com/mysite:latest + imagePullPolicy: Always + ports: + - containerPort: 8001 + imagePullSecrets: + - name: kronos-registry-secret +