diff --git a/kubernetes.yaml b/kubernetes.yaml index e3edadc..6d57de0 100644 --- a/kubernetes.yaml +++ b/kubernetes.yaml @@ -27,6 +27,7 @@ metadata: name: flaskpaste-data namespace: flaskpaste spec: + storageClassName: local-path accessModes: - ReadWriteOnce resources: @@ -54,9 +55,11 @@ spec: runAsUser: 999 runAsGroup: 999 fsGroup: 999 + imagePullSecrets: + - name: harbor-creds containers: - name: flaskpaste - image: localhost/flaskpaste:latest + image: 192.168.122.154:30443/library/flaskpaste:latest ports: - containerPort: 5000 protocol: TCP @@ -75,14 +78,14 @@ spec: cpu: "250m" livenessProbe: httpGet: - path: /health + path: / port: 5000 initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 5 readinessProbe: httpGet: - path: /health + path: / port: 5000 initialDelaySeconds: 5 periodSeconds: 10 @@ -104,7 +107,8 @@ spec: - protocol: TCP port: 80 targetPort: 5000 - type: ClusterIP + nodePort: 30500 + type: NodePort --- # Optional: Ingress for external access # Uncomment and adjust for your ingress controller