github.com/nginxinc/kubernetes-ingress@v1.12.5/examples-of-custom-resources/oidc/webapp.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: webapp 5 spec: 6 replicas: 1 7 selector: 8 matchLabels: 9 app: webapp 10 template: 11 metadata: 12 labels: 13 app: webapp 14 spec: 15 containers: 16 - name: webapp 17 image: nginxdemos/nginx-hello:plain-text 18 ports: 19 - containerPort: 8080 20 volumeMounts: 21 - name: config-volume 22 mountPath: /etc/nginx/conf.d 23 volumes: 24 - name: config-volume 25 configMap: 26 name: oidc-config 27 --- 28 apiVersion: v1 29 kind: Service 30 metadata: 31 name: webapp-svc 32 spec: 33 ports: 34 - port: 80 35 targetPort: 8080 36 protocol: TCP 37 name: http 38 selector: 39 app: webapp 40 --- 41 apiVersion: v1 42 kind: ConfigMap 43 metadata: 44 name: oidc-config 45 data: 46 app.conf: |- 47 server { 48 listen 8080; 49 50 location / { 51 default_type text/plain; 52 expires -1; 53 return 200 'Server address: $server_addr:$server_port\nServer name: $hostname\nDate: $time_local\nURI: $request_uri\nRequest ID: $request_id\nUser ID: $http_username\n'; 54 } 55 }