Skip to content

Commit

Permalink
securityContext samples
Browse files Browse the repository at this point in the history
  • Loading branch information
shamusx committed Jan 18, 2023
1 parent 945b03d commit e52a2bc
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 0 deletions.
77 changes: 77 additions & 0 deletions samples/securityContext/controlplane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
image:
registry: r16x01sw0ts4dsff42dffdctuc.azurecr.io
tag: 1.6.0
operator:
deployment:
env:
- name: ISTIO_ISOLATION_BOUNDARIES
value: "false"
podAnnotations:
security-check: runtime/default
podSecurityContext:
fsGroup: 65535
supplementalGroups:
- 65535
containerSecurityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 65535
runAsGroup: 65535
privileged: false
allowPrivilegeEscalation: false
spec:
components:
defaultKubeSpec:
deployment:
pod_annotations:
security-check: runtime/default
podSecurityContext:
fsGroup: 65535
supplementalGroups:
- 65535
containerSecurityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 65535
runAsGroup: 65535
privileged: false
allowPrivilegeEscalation: false
gitops:
enabled: true
reconcileInterval: 600s
internalCertProvider:
certManager:
managed: EXTERNAL
oap:
streamingLogEnabled: true
kubeSpec:
deployment:
containerSecurityContext:
readOnlyRootFilesystem: false
runAsUser: 1000
runAsGroup: 1000
rateLimitServer:
backend:
redis:
uri: redis-master.tsb-ratelimit.svc.cluster.local:6379
domain: local
xcp:
centralAuthMode: JWT
configProtection: {}
enableHttpMeshInternalIdentityPropagation: false
hub: r16x01sw0ts4dsff42dffdctuc.azurecr.io
managementPlane:
clusterName: aks-r16x01sw-canadacentral-2
host: rct16x01sw.azure.cx.tetrate.info
port: 443
selfSigned: true
meshObservability:
settings:
apiEndpointMetricsEnabled: true
telemetryStore:
elastic:
host: 2.2.2.2
port: 9200
protocol: https
selfSigned: true
version: 7
21 changes: 21 additions & 0 deletions samples/securityContext/dataplane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
image:
registry: r16x01sw1tsbacrdgac2wzg2opabbte.azurecr.io
tag: 1.6.0
operator:
deployment:
env:
- name: ISTIO_ISOLATION_BOUNDARIES
value: "false"
podAnnotations:
security-check: runtime/default
podSecurityContext:
fsGroup: 65535
supplementalGroups:
- 65535
containerSecurityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 65535
runAsGroup: 65535
privileged: false
allowPrivilegeEscalation: false
85 changes: 85 additions & 0 deletions samples/securityContext/managementplane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
image:
registry: r16x01sw0ts4dsff42dffdctuc.azurecr.io
tag: 1.6.0
operator:
deployment:
podAnnotations:
security-check: runtime/default
podSecurityContext:
fsGroup: 65535
supplementalGroups:
- 65535
containerSecurityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 65535
runAsGroup: 65535
privileged: false
allowPrivilegeEscalation: false
spec:
components:
defaultKubeSpec:
deployment:
pod_annotations:
security-check: runtime/default
podSecurityContext:
fsGroup: 65535
supplementalGroups:
- 65535
containerSecurityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 65535
runAsGroup: 65535
privileged: false
allowPrivilegeEscalation: false
job:
pod_annotations:
security-check: runtime/default
podSecurityContext:
fsGroup: 65535
supplementalGroups:
- 65535
containerSecurityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 65535
runAsGroup: 65535
privileged: false
allowPrivilegeEscalation: false
frontEnvoy:
port: 443
internalCertProvider:
certManager:
managed: EXTERNAL
oap:
streamingLogEnabled: true
kubeSpec:
deployment:
containerSecurityContext:
readOnlyRootFilesystem: false
runAsUser: 1000
runAsGroup: 1000
webUI:
kubeSpec:
overlays:
- apiVersion: apps/v1
kind: Deployment
name: web
patches:
- path: spec.template.spec.containers.[name:web].env[-1]
value:
name: SESSION_AGE_IN_MINUTES
value: "60"
xcp:
centralAuthModes:
jwt: true
hub: r16x01sw0ts4dsff42dffdctuc.azurecr.io
organization: tetrate
telemetryStore:
elastic:
host: 2.2.2.2
port: 9200
protocol: https
selfSigned: true
version: 7

0 comments on commit e52a2bc

Please sign in to comment.