diff options
Diffstat (limited to 'rocky-ssh-deployment.yaml')
| -rw-r--r-- | rocky-ssh-deployment.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/rocky-ssh-deployment.yaml b/rocky-ssh-deployment.yaml new file mode 100644 index 0000000..61e0dc9 --- /dev/null +++ b/rocky-ssh-deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: rocky-dev-deploy + labels: + app: rocky-dev-deploy +spec: + serviceName: rocky-dev-deploy-svc + replicas: 3 + selector: + matchLabels: + app: rocky-dev-deploy + template: + metadata: + labels: + app: rocky-dev-deploy + spec: + containers: + - name: rocky-dev-deploy + image: localhost:5000/rocky_dev:latest + imagePullPolicy: IfNotPresent # Use local image + ports: + - containerPort: 22 + name: ssh + securityContext: + privileged: true + livenessProbe: + tcpSocket: + port: 22 + initialDelaySeconds: 30 + periodSeconds: 30 + readinessProbe: + tcpSocket: + port: 22 + initialDelaySeconds: 5 + periodSeconds: 10 +--- +apiVersion: v1 +kind: Service +metadata: + name: rocky-dev-deploy-svc +spec: + clusterIP: None + selector: + app: rocky-dev-deploy + ports: + - port: 22 + targetPort: 22 |
