diff options
| author | hc <hc@email.ch> | 2025-05-30 22:51:55 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2025-05-30 22:51:55 +0800 |
| commit | 7b94af70555aab814f964a08098d0fb123171f7e (patch) | |
| tree | 2b8cf5793a7ecee85122133b4a59cad824e0c912 /rocky-ssh-deployment.yaml | |
dev_env
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 |
