-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Let me prefix this by saying that I am fairly new to kubernetes, however I was able to create a deployment yml defining a pod as detailed below:
apiVersion: apps/v1
kind: Deployment # Type of Kubernetes resource
metadata:
name: ocr-service # Name of the Kubernetes resource
spec:
replicas: 1
selector:
matchLabels:
app: ocr-service # This deployment applies to any Pods matching the specified label
template: # This deployment will create a set of pods using the configurations in this template
metadata:
labels: # The labels that will be applied to all of the pods in this deployment
app: ocr-service
spec:
containers:
- name: ocr-service
image: 10ure/ocrservice:1.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8084
livenessProbe: # To check the health of the Pod
httpGet:
path: /api/v1/health
port: 8084
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
readinessProbe: # To check if the Pod is ready to serve traffic or not
httpGet:
path: /api/v1/readiness
port: 8084
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
imagePullSecrets:
- name: regcred
I was wondering if.there was a way to run the kubectl warp command and specify a deployment file? I have other deployment files that are a bit more complex due to specified environment variables. I am unsure how I would run those deployment configs with this tool. Or am I missing the point of this tool?
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels