-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make injection pod and service easier to read
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
- Loading branch information
1 parent
5736f56
commit ca48559
Showing
3 changed files
with
137 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,111 @@ | ||
{"kind":"Pod","apiVersion":"v1","metadata":{"name":"injector","namespace":"zarf","labels":{"app":"zarf-injector","zarf.dev/agent":"ignore"}},"spec":{"volumes":[{"name":"init","configMap":{"name":"rust-binary","defaultMode":511}},{"name":"seed","emptyDir":{}},{"name":"foo","configMap":{"name":"foo"}},{"name":"bar","configMap":{"name":"bar"}}],"containers":[{"name":"injector","image":"docker.io/library/ubuntu:latest","command":["/zarf-init/zarf-injector","shasum"],"workingDir":"/zarf-init","resources":{"limits":{"cpu":"1","memory":"256Mi"},"requests":{"cpu":"500m","memory":"64Mi"}},"volumeMounts":[{"name":"init","mountPath":"/zarf-init/zarf-injector","subPath":"zarf-injector"},{"name":"seed","mountPath":"/zarf-seed"},{"name":"foo","mountPath":"/zarf-init/foo","subPath":"foo"},{"name":"bar","mountPath":"/zarf-init/bar","subPath":"bar"}],"readinessProbe":{"httpGet":{"path":"/v2/","port":5000},"periodSeconds":2,"successThreshold":1,"failureThreshold":10},"imagePullPolicy":"IfNotPresent","securityContext":{"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"readOnlyRootFilesystem":true,"allowPrivilegeEscalation":false}}],"restartPolicy":"Never","nodeName":"injection-node","securityContext":{"runAsUser":1000,"runAsGroup":2000,"fsGroup":2000,"seccompProfile":{"type":"RuntimeDefault"}}}} | ||
{ | ||
"kind": "Pod", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "injector", | ||
"namespace": "zarf", | ||
"labels": { | ||
"app": "zarf-injector", | ||
"zarf.dev/agent": "ignore" | ||
} | ||
}, | ||
"spec": { | ||
"volumes": [ | ||
{ | ||
"name": "init", | ||
"configMap": { | ||
"name": "rust-binary", | ||
"defaultMode": 511 | ||
} | ||
}, | ||
{ | ||
"name": "seed", | ||
"emptyDir": {} | ||
}, | ||
{ | ||
"name": "foo", | ||
"configMap": { | ||
"name": "foo" | ||
} | ||
}, | ||
{ | ||
"name": "bar", | ||
"configMap": { | ||
"name": "bar" | ||
} | ||
} | ||
], | ||
"containers": [ | ||
{ | ||
"name": "injector", | ||
"image": "docker.io/library/ubuntu:latest", | ||
"command": [ | ||
"/zarf-init/zarf-injector", | ||
"shasum" | ||
], | ||
"workingDir": "/zarf-init", | ||
"resources": { | ||
"limits": { | ||
"cpu": "1", | ||
"memory": "256Mi" | ||
}, | ||
"requests": { | ||
"cpu": "500m", | ||
"memory": "64Mi" | ||
} | ||
}, | ||
"volumeMounts": [ | ||
{ | ||
"name": "init", | ||
"mountPath": "/zarf-init/zarf-injector", | ||
"subPath": "zarf-injector" | ||
}, | ||
{ | ||
"name": "seed", | ||
"mountPath": "/zarf-seed" | ||
}, | ||
{ | ||
"name": "foo", | ||
"mountPath": "/zarf-init/foo", | ||
"subPath": "foo" | ||
}, | ||
{ | ||
"name": "bar", | ||
"mountPath": "/zarf-init/bar", | ||
"subPath": "bar" | ||
} | ||
], | ||
"readinessProbe": { | ||
"httpGet": { | ||
"path": "/v2/", | ||
"port": 5000 | ||
}, | ||
"periodSeconds": 2, | ||
"successThreshold": 1, | ||
"failureThreshold": 10 | ||
}, | ||
"imagePullPolicy": "IfNotPresent", | ||
"securityContext": { | ||
"capabilities": { | ||
"drop": [ | ||
"ALL" | ||
] | ||
}, | ||
"runAsNonRoot": true, | ||
"readOnlyRootFilesystem": true, | ||
"allowPrivilegeEscalation": false | ||
} | ||
} | ||
], | ||
"restartPolicy": "Never", | ||
"nodeName": "injection-node", | ||
"securityContext": { | ||
"runAsUser": 1000, | ||
"runAsGroup": 2000, | ||
"fsGroup": 2000, | ||
"seccompProfile": { | ||
"type": "RuntimeDefault" | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,24 @@ | ||
{"kind":"Service","apiVersion":"v1","metadata":{"name":"zarf-injector","namespace":"zarf","creationTimestamp":null},"spec":{"ports":[{"port":5000,"targetPort":0}],"selector":{"app":"zarf-injector"},"type":"NodePort"},"status":{"loadBalancer":{}}} | ||
{ | ||
"kind": "Service", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "zarf-injector", | ||
"namespace": "zarf", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"ports": [ | ||
{ | ||
"port": 5000, | ||
"targetPort": 0 | ||
} | ||
], | ||
"selector": { | ||
"app": "zarf-injector" | ||
}, | ||
"type": "NodePort" | ||
}, | ||
"status": { | ||
"loadBalancer": {} | ||
} | ||
} |