真题解析
Last updated
Last updated
# vim Dockerfile
FROM ubuntu:16.04
USER root
RUN apt-get install nginx -y
ENTRYPOINT ["/sunnydale.sh"]
USER 65535
CMD ["./sunnydale.sh"]# vim deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: test
name: test
spec:
replicas: 1
selector:
matchLabels:
app: test
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: test
spec:
containers:
- image: redis
name: redis
resources: {}
securityContext:
{'Capabilities': {'add':{NET_ADMIN}, 'drop':['all']}, 'privileged': False, 'readOnlyRootFilesystem': True, 'runAsUser': 65535}
status: {}