-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add selector for kubescape app in pod.json
The code changes in `pod.json` add a selector for the `kubescape` app. This change is necessary to properly identify and select the desired pods.
- Loading branch information
Showing
4 changed files
with
169 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"apiVersion": "apps/v1", | ||
"kind": "Deployment", | ||
"metadata": { | ||
"annotations": { | ||
"deployment.kubernetes.io/revision": "1" | ||
}, | ||
"creationTimestamp": "2024-07-18T19:58:44Z", | ||
"generation": 1, | ||
"name": "emailservice", | ||
"namespace": "default", | ||
"resourceVersion": "6486", | ||
"uid": "916f902f-619c-4f42-9734-5df3a8e88cb7" | ||
}, | ||
"spec": { | ||
"progressDeadlineSeconds": 600, | ||
"replicas": 1, | ||
"revisionHistoryLimit": 10, | ||
"selector": { | ||
"matchLabels": { | ||
"app": "emailservice" | ||
} | ||
}, | ||
"strategy": { | ||
"rollingUpdate": { | ||
"maxSurge": "25%", | ||
"maxUnavailable": "25%" | ||
}, | ||
"type": "RollingUpdate" | ||
}, | ||
"template": { | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"labels": { | ||
"app": "emailservice" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"env": [ | ||
{ | ||
"name": "PORT", | ||
"value": "8080" | ||
}, | ||
{ | ||
"name": "DISABLE_PROFILER", | ||
"value": "1" | ||
} | ||
], | ||
"image": "gcr.io/google-samples/microservices-demo/emailservice:v0.5.1", | ||
"imagePullPolicy": "IfNotPresent", | ||
"livenessProbe": { | ||
"exec": { | ||
"command": [ | ||
"/bin/grpc_health_probe", | ||
"-addr=:8080" | ||
] | ||
}, | ||
"failureThreshold": 3, | ||
"periodSeconds": 5, | ||
"successThreshold": 1, | ||
"timeoutSeconds": 1 | ||
}, | ||
"name": "server", | ||
"ports": [ | ||
{ | ||
"containerPort": 8080, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"readinessProbe": { | ||
"exec": { | ||
"command": [ | ||
"/bin/grpc_health_probe", | ||
"-addr=:8080" | ||
] | ||
}, | ||
"failureThreshold": 3, | ||
"periodSeconds": 5, | ||
"successThreshold": 1, | ||
"timeoutSeconds": 1 | ||
}, | ||
"resources": { | ||
"limits": { | ||
"cpu": "200m", | ||
"memory": "128Mi" | ||
}, | ||
"requests": { | ||
"cpu": "100m", | ||
"memory": "64Mi" | ||
} | ||
}, | ||
"securityContext": { | ||
"allowPrivilegeEscalation": false, | ||
"capabilities": { | ||
"drop": [ | ||
"all" | ||
] | ||
}, | ||
"privileged": false, | ||
"readOnlyRootFilesystem": true | ||
}, | ||
"terminationMessagePath": "/dev/termination-log", | ||
"terminationMessagePolicy": "File" | ||
} | ||
], | ||
"dnsPolicy": "ClusterFirst", | ||
"restartPolicy": "Always", | ||
"schedulerName": "default-scheduler", | ||
"securityContext": { | ||
"fsGroup": 1000, | ||
"runAsGroup": 1000, | ||
"runAsNonRoot": true, | ||
"runAsUser": 1000 | ||
}, | ||
"serviceAccount": "default", | ||
"serviceAccountName": "default", | ||
"terminationGracePeriodSeconds": 5 | ||
} | ||
} | ||
}, | ||
"status": { | ||
"availableReplicas": 1, | ||
"conditions": [ | ||
{ | ||
"lastTransitionTime": "2024-07-18T19:59:08Z", | ||
"lastUpdateTime": "2024-07-18T19:59:08Z", | ||
"message": "Deployment has minimum availability.", | ||
"reason": "MinimumReplicasAvailable", | ||
"status": "True", | ||
"type": "Available" | ||
}, | ||
{ | ||
"lastTransitionTime": "2024-07-18T19:58:44Z", | ||
"lastUpdateTime": "2024-07-18T19:59:08Z", | ||
"message": "ReplicaSet \"emailservice-d9dbcbd\" has successfully progressed.", | ||
"reason": "NewReplicaSetAvailable", | ||
"status": "True", | ||
"type": "Progressing" | ||
} | ||
], | ||
"observedGeneration": 1, | ||
"readyReplicas": 1, | ||
"replicas": 1, | ||
"updatedReplicas": 1 | ||
} | ||
} |