Created
March 19, 2023 16:22
-
-
Save asksven/d3ebdd47d80dd15ec9d81c77206f919d to your computer and use it in GitHub Desktop.
Revisions
-
asksven created this gist
Mar 19, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: app: nginx name: nginx-deployment spec: progressDeadlineSeconds: 600 replicas: 2 revisionHistoryLimit: 2 selector: matchLabels: app: nginx strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app: nginx spec: containers: - image: nginxinc/nginx-unprivileged:1.16 imagePullPolicy: IfNotPresent name: nginx ports: - containerPort: 80 protocol: TCP resources: limits: cpu: 100m memory: 10Mi requests: cpu: 80m memory: 4Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - NET_RAW readOnlyRootFilesystem: true runAsNonRoot: true volumeMounts: - mountPath: /tmp name: tmp securityContext: fsGroup: 2000 runAsUser: 999 volumes: - emptyDir: {} name: tmp This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: status spec: ingressClassName: nginx rules: - host: status.asksven.local http: paths: - backend: service: name: nginx-svc port: number: 80 path: / pathType: Prefix This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ apiVersion: v1 kind: Service metadata: creationTimestamp: null name: nginx-svc spec: ports: - port: 80 protocol: TCP targetPort: 8080 selector: app: nginx sessionAffinity: None type: ClusterIP